Declare next_tvb volatile. This prevents the warning:

packet-infiniband.c:806: warning: variable 'next_tvb' might be clobbered by `longjmp' or `vfork'

seen with gcc 3.4.6 (building for 32-bits on a pentium 4).

svn path=/trunk/; revision=25916
This commit is contained in:
Martin Mathieson 2008-08-04 16:36:16 +00:00
parent 96aa45646d
commit ad16b7b403
1 changed files with 1 additions and 1 deletions

View File

@ -803,7 +803,7 @@ static void parse_PAYLOAD(proto_tree * parentTree, tvbuff_t *tvb, gint *offset,
proto_tree *PAYLOAD_header_tree = NULL;
proto_item *PAYLOAD_header_item = NULL;
guint8 management_class;
tvbuff_t *next_tvb;
tvbuff_t *volatile next_tvb;
gint captured_length, reported_length;
guint16 etype, reserved;
const char *saved_proto;