From 5c25e7442f8aa394de723af09a2ba2e38bd456c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig=20Bj=C3=B8rlykke?= Date: Wed, 28 Jun 2017 16:15:40 +0200 Subject: x11: Make a tmp variable volatile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman --- epan/dissectors/packet-x11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. */ -- cgit v1.2.1