summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2014-08-01 17:09:07 +0200
committerEvan Huus <eapache@gmail.com>2014-08-01 18:02:20 +0000
commitfbc1a9af1478ca3d84388c52c14ad86cf5e33e2f (patch)
tree56b141abb50e5cc60ec83d4e86bf51483afb4394
parentf6008e45e3f1610bb94e82199c851a6503d8200e (diff)
downloadwireshark-fbc1a9af1478ca3d84388c52c14ad86cf5e33e2f.tar.gz
Fix Dead Store (Dead assignement/Dead increment) warning found by Clang
Change-Id: I847c7217b520a5f7ec581e6170fe3dc77c628e96 Reviewed-on: https://code.wireshark.org/review/3322 Reviewed-by: Evan Huus <eapache@gmail.com>
-rw-r--r--epan/dissectors/packet-bgp.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/epan/dissectors/packet-bgp.c b/epan/dissectors/packet-bgp.c
index 96c004808c..8f51b15a7d 100644
--- a/epan/dissectors/packet-bgp.c
+++ b/epan/dissectors/packet-bgp.c
@@ -6232,7 +6232,6 @@ dissect_bgp_update(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo)
break;
case BGPTYPE_AIGP:
q = o + i + aoff;
- end = o + i + aoff + tlen;
ti = proto_tree_add_item(subtree2, hf_bgp_update_path_attribute_aigp, tvb, q, tlen, ENC_NA);
subtree3 = proto_item_add_subtree(ti, ett_bgp_aigp_attr);
aigp_type_item = proto_tree_add_item(subtree3, hf_bgp_aigp_type, tvb, q, 1, ENC_BIG_ENDIAN);