From 8c86f3b0a386b6d13f56d3fbf6d9076bfa0419d2 Mon Sep 17 00:00:00 2001 From: Dario Lombardo Date: Tue, 3 Jan 2017 12:07:58 +0100 Subject: infiniband: fix error for clobbered variable. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Given by gcc-4.9.2 on arm: epan/dissectors/packet-infiniband.c:2708:9: error: variable ‘offset’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Werror=clobbered] int offset = 0; ^ cc1: all warnings being treated as errors Change-Id: I12066031093c1fa638792ff8be8f3f5457e3feda Reviewed-on: https://code.wireshark.org/review/19515 Petri-Dish: Dario Lombardo Tested-by: Petri Dish Buildbot Reviewed-by: Alexis La Goutte Reviewed-by: Michael Mann --- epan/dissectors/packet-infiniband.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'epan/dissectors/packet-infiniband.c') diff --git a/epan/dissectors/packet-infiniband.c b/epan/dissectors/packet-infiniband.c index e938e4d09f..3eda5abad4 100644 --- a/epan/dissectors/packet-infiniband.c +++ b/epan/dissectors/packet-infiniband.c @@ -2705,7 +2705,7 @@ static gboolean dissect_eth_over_ib(tvbuff_t *tvb, packet_info *pinfo, proto_tre { guint16 etype, reserved; const char *saved_proto; - int offset = 0; + volatile int offset = 0; tvbuff_t *next_tvb; struct infinibandinfo *info = (struct infinibandinfo *)data; volatile gboolean dissector_found = FALSE; -- cgit v1.2.3