forked from osmocom/wireshark
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>
This commit is contained in:
parent
064e34b215
commit
5c25e7442f
|
@ -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.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue