diff options
author | Dario Lombardo <lomato@gmail.com> | 2017-01-03 12:07:58 +0100 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2017-01-03 13:31:07 +0000 |
commit | 8c86f3b0a386b6d13f56d3fbf6d9076bfa0419d2 (patch) | |
tree | f93413186c7bdc4935e55ef1749532245d9b1aa2 /epan/dissectors/packet-infiniband.c | |
parent | 13851f331c89006417c4910d20ab9d277523954d (diff) |
infiniband: fix error for clobbered variable.
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 <lomato@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-infiniband.c')
-rw-r--r-- | epan/dissectors/packet-infiniband.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |