Fix Dead Store (Dead assignement/Dead increment) warning found by Clang
authorAlexis La Goutte <alexis.lagoutte@gmail.com>
Thu, 1 May 2014 12:14:35 +0000 (14:14 +0200)
committerAnders Broman <a.broman58@gmail.com>
Thu, 1 May 2014 13:12:24 +0000 (13:12 +0000)
Change-Id: Id38f366c04edcf3326b323fc851a6644a942d79d
Reviewed-on: https://code.wireshark.org/review/1453
Reviewed-by: Anders Broman <a.broman58@gmail.com>
epan/dissectors/packet-ospf.c

index 1a0fda270aa7f774d4aee6f1467ddbc512137fb8..a3286a72f5f4ba9d70af791a225b8cb7c32df2f0 100644 (file)
@@ -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;