From 491a321c37eb8e6028195dc310967d0f6f50c164 Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Mon, 5 May 2014 08:44:27 +0200 Subject: Fix Dead Store (Dead assignement/Dead increment) warning found by Clang Change-Id: I35ed4c0ecc28dee57d7a4cac8ddbf43d16b39677 Reviewed-on: https://code.wireshark.org/review/1501 Reviewed-by: Anders Broman --- epan/dissectors/packet-a21.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'epan/dissectors/packet-a21.c') diff --git a/epan/dissectors/packet-a21.c b/epan/dissectors/packet-a21.c index becd3d360b..31acf42a96 100644 --- a/epan/dissectors/packet-a21.c +++ b/epan/dissectors/packet-a21.c @@ -266,7 +266,7 @@ dissect_a21_authentication_challenge_parameter(tvbuff_t *tvb, packet_info *pinfo switch(type){ case 1: proto_tree_add_item(tree, hf_a21_auth_chall_para_rand_value, tvb, offset, 4, ENC_BIG_ENDIAN); - offset +=4; + /*offset +=4;*/ break; default: proto_tree_add_text(tree, tvb, offset, -1, "Random Number Type Reserved"); @@ -463,11 +463,11 @@ dissect_a21_event(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, proto if(length>1){ if(event_id == 7){ proto_tree_add_item(tree, hf_a21_allowed_foward_link_message, tvb, offset, 2, ENC_BIG_ENDIAN); - offset +=2; + /*offset +=2;*/ } else{ proto_tree_add_item(tree, hf_a21_additional_event_info, tvb, offset, 2, ENC_BIG_ENDIAN); - offset +=2; + /*offset +=2;*/ } } -- cgit v1.2.3