diff options
author | Bill Meier <wmeier@newsguy.com> | 2013-10-23 16:59:34 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2013-10-23 16:59:34 +0000 |
commit | 8c220a6f7f8540914a0834bd114d97cdedd5d18f (patch) | |
tree | 91dacfe4ce1ab8fd33a5a0b55825562fdba82a57 | |
parent | 79d58dc6707a09466bed0f8ce173627259f29e4a (diff) |
Fix (using '#if 0') a few more [-Wunused-const-variable] warnings
svn path=/trunk/; revision=52799
-rw-r--r-- | plugins/docsis/packet-tlv.c | 2 | ||||
-rw-r--r-- | plugins/opcua/opcua_security_layer.c | 8 | ||||
-rw-r--r-- | plugins/profinet/packet-dcom-cba-acco.c | 2 | ||||
-rw-r--r-- | plugins/profinet/packet-pn-mrp.c | 6 | ||||
-rw-r--r-- | plugins/profinet/packet-pn-ptcp.c | 2 | ||||
-rw-r--r-- | plugins/profinet/packet-pn-rt.c | 3 | ||||
-rw-r--r-- | plugins/wimaxmacphy/packet-wimaxmacphy.c | 6 | ||||
-rw-r--r-- | rawshark.c | 2 |
8 files changed, 28 insertions, 3 deletions
diff --git a/plugins/docsis/packet-tlv.c b/plugins/docsis/packet-tlv.c index 50e3572bca..30fbfb5df5 100644 --- a/plugins/docsis/packet-tlv.c +++ b/plugins/docsis/packet-tlv.c @@ -488,10 +488,12 @@ static const value_string action_vals[] = { {0, NULL}, }; +#if 0 static const true_false_string verify_tfs = { "Don't Verify", "Verify" }; +#endif static const value_string rng_tech_vals[] = { {0, "Perform initial maintenance on new channel"}, diff --git a/plugins/opcua/opcua_security_layer.c b/plugins/opcua/opcua_security_layer.c index e02af8327c..b9cb00425e 100644 --- a/plugins/opcua/opcua_security_layer.c +++ b/plugins/opcua/opcua_security_layer.c @@ -3,15 +3,15 @@ ** ** Copyright (C) 2006-2007 ascolab GmbH. All Rights Reserved. ** Web: http://www.ascolab.com -** +** ** This program is free software; you can redistribute it and/or ** modify it under the terms of the GNU General Public License ** as published by the Free Software Foundation; either version 2 ** of the License, or (at your option) any later version. -** +** ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. -** +** ** Project: OpcUa Wireshark Plugin ** ** Description: OpcUa Security Layer Decoder. @@ -28,6 +28,7 @@ #include "opcua_application_layer.h" #include "opcua_simpletypes.h" +#if 0 /** NodeClass enum table */ static const value_string g_SecSigTable[] = { { 0, "GetSecurityPolcies" }, @@ -36,6 +37,7 @@ static const value_string g_SecSigTable[] = { { 3, "Message" }, { 0, NULL } }; +#endif static int hf_opcua_security_tokenid = -1; static int hf_opcua_security_seq = -1; diff --git a/plugins/profinet/packet-dcom-cba-acco.c b/plugins/profinet/packet-dcom-cba-acco.c index 2a4c5c52c6..02231e4ef2 100644 --- a/plugins/profinet/packet-dcom-cba-acco.c +++ b/plugins/profinet/packet-dcom-cba-acco.c @@ -229,12 +229,14 @@ static const value_string cba_acco_conn_state_vals[] = { { 0, NULL } }; +#if 0 static const value_string cba_acco_serversrt_action_vals[] = { { 0x00, "Activate" }, { 0x01, "Deactivate" }, { 0x02, "Remove" }, { 0, NULL } }; +#endif static const value_string cba_acco_serversrt_last_connect_vals[] = { { 0x00, "CR not complete" }, diff --git a/plugins/profinet/packet-pn-mrp.c b/plugins/profinet/packet-pn-mrp.c index 258e346152..bc94ea0f51 100644 --- a/plugins/profinet/packet-pn-mrp.c +++ b/plugins/profinet/packet-pn-mrp.c @@ -85,6 +85,8 @@ static const value_string pn_mrp_port_role_vals[] = { { 0, NULL } }; + +#if 0 static const value_string pn_mrp_role_vals[] = { { 0x0000, "Media redundancy disabled" }, { 0x0001, "Media redundancy client" }, @@ -94,6 +96,7 @@ static const value_string pn_mrp_role_vals[] = { { 0, NULL } }; +#endif static const value_string pn_mrp_ring_state_vals[] = { { 0x0000, "Ring open" }, @@ -104,11 +107,14 @@ static const value_string pn_mrp_ring_state_vals[] = { }; +#if 0 static const value_string pn_mrp_prio_vals[] = { { 0x8000, "Default priority for redundancy manager" }, { 0, NULL } }; +#endif + /* routine disecting an uint16 and returning that item as well */ /* dissect a 16 bit unsigned integer */ int diff --git a/plugins/profinet/packet-pn-ptcp.c b/plugins/profinet/packet-pn-ptcp.c index 7a18cc1170..db048c4491 100644 --- a/plugins/profinet/packet-pn-ptcp.c +++ b/plugins/profinet/packet-pn-ptcp.c @@ -153,11 +153,13 @@ static const value_string pn_ptcp_master_prio1_vals_active[] = { { 0, NULL } }; +#if 0 static const value_string pn_ptcp_master_prio1_short_vals[] = { { 0x01, "Primary" }, { 0x02, "Secondary" }, { 0, NULL } }; +#endif static const value_string pn_ptcp_master_prio2_vals[] = { { 0xFF, "Default" }, diff --git a/plugins/profinet/packet-pn-rt.c b/plugins/profinet/packet-pn-rt.c index 13d5bcd246..2b3ea81205 100644 --- a/plugins/profinet/packet-pn-rt.c +++ b/plugins/profinet/packet-pn-rt.c @@ -107,11 +107,14 @@ static gboolean pn_rt_summary_in_tree = TRUE; static heur_dissector_list_t heur_subdissector_list; +#if 0 static const value_string pn_rt_position_control[] = { { 0x00, "CRC16 and CycleCounter shall not be checked" }, { 0x80, "CRC16 and CycleCounter valid" }, { 0, NULL } }; +#endif + static const value_string pn_rt_ds_redundancy[] = { { 0x00, "One primary AR of a given AR-set is present" }, { 0x01, "None primary AR of a given AR-set is present" }, diff --git a/plugins/wimaxmacphy/packet-wimaxmacphy.c b/plugins/wimaxmacphy/packet-wimaxmacphy.c index c0443a9529..8385fc195c 100644 --- a/plugins/wimaxmacphy/packet-wimaxmacphy.c +++ b/plugins/wimaxmacphy/packet-wimaxmacphy.c @@ -407,6 +407,7 @@ static const value_string wimaxmacphy_prim_txstart_indication_status_vals[]= /* ------------------------------------------------------------------------- */ +#if 0 static const value_string wimaxmacphy_prim_sub_burst_burst_split_point_vals[]= { { 0x00, "all 10 bits for burst number"}, @@ -419,15 +420,18 @@ static const value_string wimaxmacphy_prim_sub_burst_burst_split_point_vals[]= { 0x07, "7 bit sub-burst and 3 bits burst number"}, { 0, NULL} }; +#endif /* ------------------------------------------------------------------------- */ +#if 0 static const value_string wimaxmacphy_prim_phy_request_vals[]= { { 0x0, "LW 1 not present"}, { 0x1, "AAS calibration request present in LW 1"}, { 0, NULL} }; +#endif /* ------------------------------------------------------------------------- */ @@ -960,12 +964,14 @@ static const value_string wimaxmacphy_ul_sub_burst_ctype_vals[]= /* ------------------------------------------------------------------------- */ +#if 0 static const value_string wimaxmacphy_ul_sub_burst_feedback_sub_type_vals[]= { { 0, "CQI (CINR) measurement"}, { 1, "Control feedback"}, { 0, NULL} }; +#endif /* ------------------------------------------------------------------------- */ diff --git a/rawshark.c b/rawshark.c index ded8d90ebd..a2825fdc1e 100644 --- a/rawshark.c +++ b/rawshark.c @@ -114,11 +114,13 @@ #include <wsutil/unicode-utils.h> #endif /* _WIN32 */ +#if 0 /* * This is the template for the decode as option; it is shared between the * various functions that output the usage for this parameter. */ static const gchar decode_as_arg_template[] = "<layer_type>==<selector>,<decode_as_protocol>"; +#endif static guint32 cum_bytes; static const frame_data *ref; |