Added volatile to 'offset' (needed by my version of gcc).
authormartinm <martinm@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 21 Jun 2010 09:41:57 +0000 (09:41 +0000)
committermartinm <martinm@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 21 Jun 2010 09:41:57 +0000 (09:41 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33275 f5534014-38df-0310-8fa8-9805f1628bb7

epan/dissectors/packet-gmhdr.c

index 28ce8e2f2b5babea717cfef12ae341f52171fae6..630e2fcc3f779c432da46d763635ee3e2ff7a3fe 100644 (file)
@@ -141,7 +141,7 @@ dissect_gmhdr(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   volatile guint16 encap_proto;
   volatile gboolean is_802_2;
   proto_tree *volatile gmhdr_tree = NULL;
-  guint offset = 0;
+  volatile guint offset = 0;
 
   length = tvb_get_guint8(tvb, offset); /* Length of the Gigamon header */