aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2014-06-25 21:27:55 +0200
committerJeff Morriss <jeff.morriss.ws@gmail.com>2014-06-26 02:43:12 +0000
commit06cf499eaf438fc004bf1adee2b34bcdf6df55c5 (patch)
tree256e726efc0d07dd9b2cf3b7195c7e09fcb76069 /epan
parentb632c23a3b55227599ec93adf1400f9c7dfcfd1f (diff)
Fix Dead Store (Dead assignement/Dead increment) warning found by Clang
Change-Id: Icec39c64d952ccc9739df95135ed79b3196a427a Reviewed-on: https://code.wireshark.org/review/2652 Reviewed-by: Jeff Morriss <jeff.morriss.ws@gmail.com>
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/packet-ospf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-ospf.c b/epan/dissectors/packet-ospf.c
index a81b042043..92c8ff2046 100644
--- a/epan/dissectors/packet-ospf.c
+++ b/epan/dissectors/packet-ospf.c
@@ -2552,7 +2552,7 @@ dissect_ospf_v2_lsa(tvbuff_t *tvb, packet_info *pinfo, int offset, proto_tree *t
}
nr_links = tvb_get_ntohs(tvb, offset + 2);
- ti = proto_tree_add_item(ospf_lsa_tree, hf_ospf_lsa_number_of_links, tvb, offset + 2, 2, ENC_BIG_ENDIAN);
+ /* ti =*/ proto_tree_add_item(ospf_lsa_tree, hf_ospf_lsa_number_of_links, tvb, offset + 2, 2, ENC_BIG_ENDIAN);
offset += 4;
/* This constraint (>=0) makes no sense