From 4633fb157ab6f44327aaee490d3b123e374770b4 Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Sat, 23 Mar 2013 13:08:48 +0000 Subject: [PATCH] Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang svn path=/trunk/; revision=48506 --- epan/dissectors/packet-rtps.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/epan/dissectors/packet-rtps.c b/epan/dissectors/packet-rtps.c index 8ba6e97822..9f6cd93e2d 100644 --- a/epan/dissectors/packet-rtps.c +++ b/epan/dissectors/packet-rtps.c @@ -1771,7 +1771,7 @@ static gint rtps_util_add_typecode(proto_tree *tree, offset += 4; /* Recursive decode seq typecode */ - offset += rtps_util_add_typecode( + /*offset += */rtps_util_add_typecode( tree, tvb, offset, @@ -1812,7 +1812,7 @@ static gint rtps_util_add_typecode(proto_tree *tree, } /* Recursive decode seq typecode */ - offset += rtps_util_add_typecode( + /*offset += */rtps_util_add_typecode( tree, tvb, offset, @@ -2881,7 +2881,7 @@ static gint dissect_parameter_sequence(proto_tree *tree, "filterExpression", NULL, 0); - temp_offset = rtps_util_add_seq_string(rtps_parameter_tree, + /*temp_offset = */rtps_util_add_seq_string(rtps_parameter_tree, tvb, temp_offset, little_endian, @@ -3486,7 +3486,7 @@ static void dissect_DATA(tvbuff_t *tvb, /* SerializedData */ if ((flags & FLAG_DATA_D) != 0) { if (is_builtin_entity) { - offset = dissect_parameter_sequence(tree, pinfo, tvb, offset, + /*offset =*/ dissect_parameter_sequence(tree, pinfo, tvb, offset, little_endian, octets_to_next_header, "serializedData"); } else { proto_tree_add_item(tree, @@ -4189,7 +4189,7 @@ static void dissect_INFO_REPLY_IP4(tvbuff_t *tvb, if ((flags & FLAG_INFO_REPLY_IP4_M) != 0) { rtps_util_add_locator_udp_v4(tree, pinfo, tvb, offset, "multicastReplyLocator", little_endian); - offset += 8; + /*offset += 8;*/ } } @@ -4306,7 +4306,7 @@ static void dissect_INFO_REPLY(tvbuff_t *tvb, /* multicastReplyLocatorList */ if ((flags & FLAG_INFO_REPLY_M) != 0) { rtps_util_add_locator_list(tree, pinfo, tvb, offset, "multicastReplyLocatorList", little_endian); - offset += 8; + /*offset += 8;*/ } }