diff options
author | Bill Meier <wmeier@newsguy.com> | 2011-06-20 01:13:21 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2011-06-20 01:13:21 +0000 |
commit | 91191c6c003ac2502626ae9bfb316e52fb6aa0a8 (patch) | |
tree | f0aa07f73632d1aa064e1a9af2fac2aa13b757e2 /epan/dissectors/packet-tapa.c | |
parent | b8e727ac8d7d5f77c9244786056eb8da185e0022 (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).
svn path=/trunk/; revision=37723
Diffstat (limited to 'epan/dissectors/packet-tapa.c')
-rw-r--r-- | epan/dissectors/packet-tapa.c | 8 |
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); |