From 13dd456303098c2f38b849eef420a29cb53f3ae3 Mon Sep 17 00:00:00 2001 From: wmeier 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). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37723 f5534014-38df-0310-8fa8-9805f1628bb7 --- epan/dissectors/packet-tapa.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'epan/dissectors/packet-tapa.c') diff --git a/epan/dissectors/packet-tapa.c b/epan/dissectors/packet-tapa.c index 68d3d7f1bb..1bc7bc388e 100644 --- a/epan/dissectors/packet-tapa.c +++ b/epan/dissectors/packet-tapa.c @@ -1,4 +1,4 @@ -/* packet-3com-tapa.c +/* packet-tapa.c * Routines for the disassembly of the Trapeze TAPA protocol * * $Id$ @@ -127,10 +127,12 @@ static const value_string tapa_discover_request_vals[] = { { 0, NULL } }; +#if 0 static const value_string tapa_discover_unknown_vals[] = { { 0, NULL } }; +#endif static gboolean check_ascii(tvbuff_t *tvb, gint offset, gint length) @@ -231,12 +233,12 @@ dissect_tapa_discover_unknown_new_tlv(tvbuff_t *tvb, packet_info *pinfo, proto_t guint8 item_type; gint item_length; const gchar *item_text; - const gchar *item_type_text; + /*const gchar *item_type_text;*/ gboolean is_ascii; while (remaining > 0) { item_type = tvb_get_guint8(tvb, offset); - item_type_text = val_to_str(item_type, tapa_discover_unknown_vals, "%d"); + /*item_type_text = val_to_str(item_type, tapa_discover_unknown_vals, "%d");*/ item_length = tvb_get_ntohs(tvb, offset + 2) - 4; DISSECTOR_ASSERT(item_length > 0); -- cgit v1.2.3