From 39b533ed52a7e45bb658fd412d4b447245d3562f Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Thu, 1 May 2014 14:14:35 +0200 Subject: Fix Dead Store (Dead assignement/Dead increment) warning found by Clang Change-Id: Id38f366c04edcf3326b323fc851a6644a942d79d Reviewed-on: https://code.wireshark.org/review/1453 Reviewed-by: Anders Broman --- epan/dissectors/packet-ospf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'epan/dissectors/packet-ospf.c') diff --git a/epan/dissectors/packet-ospf.c b/epan/dissectors/packet-ospf.c index 1a0fda270a..a3286a72f5 100644 --- a/epan/dissectors/packet-ospf.c +++ b/epan/dissectors/packet-ospf.c @@ -1249,7 +1249,7 @@ dissect_ospf(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) case OSPF_VERSION_3: /* Instance ID and "reserved" is OSPFv3-only */ - ti = proto_tree_add_item(ospf_header_tree, hf_ospf_header_instance_id, tvb, 14, 1, ENC_NA); + proto_tree_add_item(ospf_header_tree, hf_ospf_header_instance_id, tvb, 14, 1, ENC_NA); instance_id = tvb_get_guint8(tvb, 14); /* By default set address_family to OSPF_AF_6 */ address_family = OSPF_AF_6; -- cgit v1.2.3