diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2015-08-31 14:01:46 +0200 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2015-09-02 00:36:24 +0000 |
commit | b7764fc601893f73aa12145e67524d4d408facfb (patch) | |
tree | 15f24c16ff869d0c1ede0bb93d00af159c2a1586 /epan/dissectors/packet-umts_mac.c | |
parent | c8f87842cbb8853678d3f527fd42a72297cb773a (diff) |
UMTS (mac): fix will never be executed [-Wunreachable-code]
Move tvbuff_t declaration for avoid https://llvm.org/bugs/show_bug.cgi?id=19020
Found by Clang 3.7
Change-Id: Id26fd62273d6838774db161a8b3f6c7db94a2de1
Reviewed-on: https://code.wireshark.org/review/10328
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-umts_mac.c')
-rw-r--r-- | epan/dissectors/packet-umts_mac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-umts_mac.c b/epan/dissectors/packet-umts_mac.c index ea338601f6..8fe830c451 100644 --- a/epan/dissectors/packet-umts_mac.c +++ b/epan/dissectors/packet-umts_mac.c @@ -373,6 +373,7 @@ static void dissect_mac_fdd_fach(tvbuff_t *tvb, packet_info *pinfo, proto_tree * guint16 tctf_len, chan; proto_tree *fach_tree = NULL; proto_item *channel_type; + tvbuff_t *next_tvb; umts_mac_info *macinf; fp_info *fpinf; rlc_info *rlcinf; @@ -410,7 +411,6 @@ static void dissect_mac_fdd_fach(tvbuff_t *tvb, packet_info *pinfo, proto_tree * chan = fpinf->cur_chan; switch (tctf) { - tvbuff_t *next_tvb; case TCTF_CCCH_FACH_FDD: proto_item_append_text(ti, " (CCCH)"); channel_type = proto_tree_add_uint(fach_tree, hf_mac_channel, tvb, 0, 0, MAC_CCCH); |