diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2013-01-06 14:49:58 +0000 |
---|---|---|
committer | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2013-01-06 14:49:58 +0000 |
commit | 2e3564d69e7006830c891b4de796752e3a258be6 (patch) | |
tree | b2e6e978d12213bffaaf9f2c5eaac4f71627ab4a /epan | |
parent | bfa7d1a3f162e6c56fba94b2783e7840c5fee414 (diff) |
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=46961
Diffstat (limited to 'epan')
-rw-r--r-- | epan/dissectors/packet-pim.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/epan/dissectors/packet-pim.c b/epan/dissectors/packet-pim.c index cce0d7f29b..11fe3198c6 100644 --- a/epan/dissectors/packet-pim.c +++ b/epan/dissectors/packet-pim.c @@ -722,7 +722,6 @@ dissect_pim(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { break; default: /* PIM is available for IPv4 and IPv6 right now */ - computed_cksum = 0; /* squelch GCC complaints */ DISSECTOR_ASSERT_NOT_REACHED(); break; } @@ -1116,7 +1115,7 @@ dissect_pim(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { offset += 4; proto_tree_add_item(pimopt_tree, hf_pim_metric, tvb, offset, 4, ENC_BIG_ENDIAN); - offset += 4; + /* offset += 4;*/ break; } @@ -1212,7 +1211,7 @@ dissect_pim(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { proto_tree_add_text(pimopt_tree, tvb, offset, 1, "Interval: %u", tvb_get_guint8(tvb, offset)); - offset += 1; + /*offset += 1;*/ break; } |