From e7488b77797b4447537c92431f676c805fb1e696 Mon Sep 17 00:00:00 2001 From: Bill Meier Date: Tue, 15 Apr 2014 10:25:51 -0400 Subject: [PATCH] Fix "might be clobbered by 'longjmp' or 'vfork' [-Werror=clobbered]" warning from gcc 4.9. Change-Id: I0d8f2a03d615840a1733602d0a5a6524caba6ff5 Reviewed-on: https://code.wireshark.org/review/1152 Reviewed-by: Bill Meier Tested-by: Bill Meier --- epan/dissectors/packet-osc.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/epan/dissectors/packet-osc.c b/epan/dissectors/packet-osc.c index 8104633fe9..39dc1d07e9 100644 --- a/epan/dissectors/packet-osc.c +++ b/epan/dissectors/packet-osc.c @@ -669,11 +669,11 @@ dissect_osc_heur_udp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void * /* peek first string */ if(tvb_strneql(tvb, 0, bundle_str, 8) != 0) /* no OSC bundle */ { - gint offset = 0; - gint slen; - gint rem; - const gchar *str; - gboolean valid = FALSE; + gint offset = 0; + gint slen; + gint rem; + const gchar *str; + volatile gboolean valid = FALSE; /* Check for valid path */ /* Don't propagate any exceptions upwards during heuristics check */