diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2013-06-29 22:00:22 +0000 |
---|---|---|
committer | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2013-06-29 22:00:22 +0000 |
commit | 66801775414697ea0450efcca7a46081625a4ecc (patch) | |
tree | a821f360b6acf8c3b703a6196ce04790f82eb5cc /epan/dissectors/packet-bvlc.c | |
parent | c18eb788c2b1da1ca0a43f1286c582bbffe7640f (diff) |
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=50241
Diffstat (limited to 'epan/dissectors/packet-bvlc.c')
-rw-r--r-- | epan/dissectors/packet-bvlc.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/epan/dissectors/packet-bvlc.c b/epan/dissectors/packet-bvlc.c index 61039a1e3c..328118586e 100644 --- a/epan/dissectors/packet-bvlc.c +++ b/epan/dissectors/packet-bvlc.c @@ -196,11 +196,11 @@ dissect_bvlc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_ * packet to dissect, see README.developer, 1.6.2, FID */ proto_tree_add_uint_format_value(bvlc_tree, hf_bvlc_result, tvb, offset, 2, bvlc_result,"0x%04x (%s)", - bvlc_result, - val_to_str_const(bvlc_result, - bvlc_result_names, - "Unknown")); - offset += 2; + bvlc_result, + val_to_str_const(bvlc_result, + bvlc_result_names, + "Unknown")); + /*offset += 2;*/ break; case 0x01: /* Write-Broadcast-Distribution-Table */ case 0x03: /* Read-Broadcast-Distribution-Table-Ack */ @@ -230,7 +230,7 @@ dissect_bvlc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_ /* Time-to-Live 2-octets T, Time-to-Live T, in seconds */ proto_tree_add_item(bvlc_tree, hf_bvlc_reg_ttl, tvb, offset, 2, ENC_BIG_ENDIAN); - offset += 2; + /*offset += 2;*/ break; case 0x06: /* Read-Foreign-Device-Table */ /* nothing to do here */ @@ -274,7 +274,7 @@ dissect_bvlc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_ offset += 4; proto_tree_add_item(bvlc_tree, hf_bvlc_fdt_port, tvb, offset, 2, ENC_BIG_ENDIAN); - offset += 2; + /*offset += 2;*/ break; /* We check this if we get a FDT-packet somewhere */ case 0x04: /* Forwarded-NPDU @@ -288,7 +288,7 @@ dissect_bvlc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_ offset += 4; proto_tree_add_item(bvlc_tree, hf_bvlc_fwd_port, tvb, offset, 2, ENC_BIG_ENDIAN); - offset += 2; + /*offset += 2;*/ default:/* Distribute-Broadcast-To-Network * Original-Unicast-NPDU * Original-Broadcast-NPDU |