diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2013-04-07 18:56:23 +0000 |
---|---|---|
committer | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2013-04-07 18:56:23 +0000 |
commit | 1ad2bb6aa905274868437809712a8d1b25483cc4 (patch) | |
tree | c8c913523ad014e5015441acb1cee003ea8308ad /epan | |
parent | 3f57c74724f6354880f5eea30d65c8ee8af24446 (diff) | |
download | wireshark-1ad2bb6aa905274868437809712a8d1b25483cc4.tar.gz |
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=48782
Diffstat (limited to 'epan')
-rw-r--r-- | epan/dissectors/packet-rtps.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/epan/dissectors/packet-rtps.c b/epan/dissectors/packet-rtps.c index 1ca46a1306..8aac92e826 100644 --- a/epan/dissectors/packet-rtps.c +++ b/epan/dissectors/packet-rtps.c @@ -3374,7 +3374,6 @@ static gboolean dissect_parameter_sequence_v1(proto_tree *rtps_parameter_tree, p offset +=4; param_length -= 4; /* decrement count */ } - offset += param_length; break; } @@ -4210,7 +4209,7 @@ static void dissect_DATA_v1(tvbuff_t *tvb, packet_info *pinfo, gint offset, guin /* SerializedData */ if ((flags & FLAG_DATA_D) != 0) { if (is_builtin_entity) { - offset = dissect_parameter_sequence(tree, pinfo, tvb, offset, + dissect_parameter_sequence(tree, pinfo, tvb, offset, little_endian, octets_to_next_header, "serializedData", 0x0102, NULL, 0); } else { @@ -4331,7 +4330,7 @@ static void dissect_DATA_v2(tvbuff_t *tvb, packet_info *pinfo, gint offset, guin offset += 4; if ((flags & FLAG_DATA_I) != 0) { - octet_item = proto_tree_add_item(tree, hf_rtps_data_status_info, tvb, + proto_tree_add_item(tree, hf_rtps_data_status_info, tvb, offset, 4, little_endian ? ENC_LITTLE_ENDIAN : ENC_BIG_ENDIAN); offset += 4; } |