aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-tapa.c
diff options
context:
space:
mode:
authorwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>2011-06-20 01:13:21 +0000
committerwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>2011-06-20 01:13:21 +0000
commit13dd456303098c2f38b849eef420a29cb53f3ae3 (patch)
treef0aa07f73632d1aa064e1a9af2fac2aa13b757e2 /epan/dissectors/packet-tapa.c
parent5f4d28ddc532edfe531e9f985da6a081a2bbaf36 (diff)
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
Diffstat (limited to 'epan/dissectors/packet-tapa.c')
-rw-r--r--epan/dissectors/packet-tapa.c8
1 files changed, 5 insertions, 3 deletions
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);