diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2012-02-12 18:05:22 +0000 |
---|---|---|
committer | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2012-02-12 18:05:22 +0000 |
commit | e86788796e85c86c1c4371c04078e131d426a60f (patch) | |
tree | 6d507d5fac193491dd2a65aa4b36feff985270d1 /epan/dissectors/packet-icep.c | |
parent | dfb7f8dd19cd43acf5abfcb431ecb4a789ddfab0 (diff) |
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=40995
Diffstat (limited to 'epan/dissectors/packet-icep.c')
-rw-r--r-- | epan/dissectors/packet-icep.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/epan/dissectors/packet-icep.c b/epan/dissectors/packet-icep.c index 3eced10c77..8a8b484190 100644 --- a/epan/dissectors/packet-icep.c +++ b/epan/dissectors/packet-icep.c @@ -258,7 +258,7 @@ static void dissect_ice_string(proto_tree *tree, int hf_icep, if ( dest != NULL ) *dest = s; - offset += Size; + /*offset += Size;*/ (*consumed) += Size; return; } @@ -737,7 +737,8 @@ static void dissect_icep_request_common(tvbuff_t *tvb, guint32 offset, if ( consumed == -1 ) goto error; - offset += consumed; DBG1("consumed --> %d\n", consumed); + /*offset += consumed;*/ + DBG1("consumed --> %d\n", consumed); (*total_consumed) += consumed; return; @@ -817,7 +818,7 @@ static void dissect_icep_request(tvbuff_t *tvb, guint32 offset, proto_tree *icep if ( consumed == -1 ) return; - offset += consumed; + /*offset += consumed;*/ DBG1("consumed --> %d\n", consumed); } @@ -1028,7 +1029,7 @@ static void dissect_icep_reply(tvbuff_t *tvb, guint32 offset, proto_tree *icep_t reported_reply_data - tvb_data_remained); } - offset += tvb_data_remained; + /*offset += tvb_data_remained;*/ DBG1("consumed --> %d\n", tvb_data_remained); return; } @@ -1048,7 +1049,7 @@ static void dissect_icep_reply(tvbuff_t *tvb, guint32 offset, proto_tree *icep_t "Reply data (empty)"); } - offset += reported_reply_data; + /*offset += reported_reply_data;*/ DBG1("consumed --> %d\n", reported_reply_data); } |