Fix Dead Store (Dead assignement/Dead increment) Warning found by Clang
authoralagoutte <alagoutte@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 18 Apr 2011 18:36:44 +0000 (18:36 +0000)
committeralagoutte <alagoutte@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 18 Apr 2011 18:36:44 +0000 (18:36 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36708 f5534014-38df-0310-8fa8-9805f1628bb7

epan/dissectors/packet-amr.c

index 2149fc37260521c1f059526a146d8253641e10db..44d4b5657060cbc25dc1417a5ceb34a3455dd4f9 100644 (file)
@@ -430,7 +430,6 @@ dissect_amr_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint amr
 {
        int offset = 0;
        int bit_offset = 0;
-       int toc_offset = 0;
        guint8 octet;
        proto_item *item;
        gboolean first_time;
@@ -486,7 +485,6 @@ dissect_amr_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint amr
                proto_tree_add_item(amr_tree, hf_amr_reserved, tvb, offset, 1, FALSE);
                offset++;
                bit_offset+=4;
-               toc_offset = offset;
                /*
                 *  A ToC entry takes the following format in octet-aligned mode:
                 *