Wireshark-dev: [Wireshark-dev] Build broken (packet-mp2t.c:245 offset might be clobbered by `lo

From: Martin Mathieson <martin.r.mathieson@xxxxxxxxxxxxxx>
Date: Fri, 6 Feb 2009 11:15:08 +0000
Hi,

I found this warning after I updated from svn this morning.  I'm using gcc 3.4.6 under Linux.

I'm not sure what the correct fix would be, I wouldn't  be surprised if it wasn't the attached patch though...

Martin
Index: packet-mp2t.c
===================================================================
--- packet-mp2t.c	(revision 27383)
+++ packet-mp2t.c	(working copy)
@@ -442,11 +442,12 @@
 
 
 static gint
-dissect_tsp(tvbuff_t *tvb, gint offset, packet_info *pinfo, proto_tree *tree,
+dissect_tsp(tvbuff_t *tvb, gint offset_in, packet_info *pinfo, proto_tree *tree,
 	    conversation_t *conv)
 {
 	guint32 header;
 	guint afc;
+	volatile gint offset = offset_in;
 	gint start_offset = offset;
 	gint payload_len;