diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2017-06-28 16:15:40 +0200 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2017-06-28 16:06:02 +0000 |
commit | 5c25e7442f8aa394de723af09a2ba2e38bd456c0 (patch) | |
tree | 6d0510139bb01e0c906ad03069c38eb3eb2f2e6f | |
parent | 064e34b215d881b238b2f319d55f07d238e5e193 (diff) | |
download | wireshark-5c25e7442f8aa394de723af09a2ba2e38bd456c0.tar.gz |
x11: Make a tmp variable volatile
This fixes a warning:
[...]/epan/dissectors/packet-x11.c:5019:26: error: variable ‘tmp’ might
be clobbered by ‘longjmp’ or ‘vfork’ [-Werror=clobbered]
gint64 tmp = (gint64)plen * 4;
Change-Id: I9462d3a71081e53a5567716e660a8306c4e028bf
Reviewed-on: https://code.wireshark.org/review/22443
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
-rw-r--r-- | epan/dissectors/packet-x11.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-x11.c b/epan/dissectors/packet-x11.c index 0b0fb73287..ae616e9ec4 100644 --- a/epan/dissectors/packet-x11.c +++ b/epan/dissectors/packet-x11.c @@ -5016,7 +5016,7 @@ static void dissect_x11_requests(tvbuff_t *tvb, packet_info *pinfo, plen = 12 + ROUND_LENGTH(auth_proto_len) + ROUND_LENGTH(auth_data_len); } else { - gint64 tmp = (gint64)plen * 4; + volatile gint64 tmp = (gint64)plen * 4; /* * This is probably an ordinary request. */ |