From 91191c6c003ac2502626ae9bfb316e52fb6aa0a8 Mon Sep 17 00:00:00 2001 From: Bill Meier Date: Mon, 20 Jun 2011 01:13:21 +0000 Subject: Fix some gcc 4.6 "set but not used [-Wunused-but-set-variable]" warnings; (Code commented out since it may be required in the future (at least in some cases). svn path=/trunk/; revision=37723 --- epan/dissectors/packet-dect.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'epan/dissectors/packet-dect.c') diff --git a/epan/dissectors/packet-dect.c b/epan/dissectors/packet-dect.c index e591b1f16d..3b6dcedd2d 100644 --- a/epan/dissectors/packet-dect.c +++ b/epan/dissectors/packet-dect.c @@ -1258,7 +1258,7 @@ static gint dissect_bfield(gboolean dect_packet_type _U_, guint8 ba, packet_info *pinfo _U_, tvbuff_t *tvb, gint offset, proto_tree *DectTree, proto_tree *ColumnsTree) { - guint8 xcrc, xcrclen; + guint8 xcrc/*, xcrclen*/; guint16 blen; gint start_offset; char *bfield_str; @@ -1290,21 +1290,21 @@ dissect_bfield(gboolean dect_packet_type _U_, guint8 ba, case 5: case 6: blen=40; - xcrclen=4; + /*xcrclen=4;*/ bfield_short_str="Full Slot"; bfield_str="Full Slot (320 bit data, 4 bit xcrc)"; break; case 2: blen=100; - xcrclen=4; + /*xcrclen=4;*/ bfield_short_str="Double Slot"; bfield_str="Double Slot (800 bit data, 4 bit xcrc)"; break; case 4: blen=10; - xcrclen=4; + /*xcrclen=4;*/ bfield_short_str="Half Slot"; bfield_str="Half Slot (80 bit data, 4 bit xcrc)"; @@ -1312,7 +1312,7 @@ dissect_bfield(gboolean dect_packet_type _U_, guint8 ba, case 7: default: blen=0; - xcrclen=0; + /*xcrclen=0;*/ bfield_short_str="No B-Field"; bfield_str="No B-Field"; -- cgit v1.2.1