Fix (using '#if 0') a few more [-Wunused-const-variable] warnings

svn path=/trunk/; revision=52799
This commit is contained in:
Bill Meier 2013-10-23 16:59:34 +00:00
parent 79d58dc670
commit 8c220a6f7f
8 changed files with 28 additions and 3 deletions

View File

@ -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"},

View File

@ -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;

View File

@ -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" },

View File

@ -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

View File

@ -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" },

View File

@ -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" },

View File

@ -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
/* ------------------------------------------------------------------------- */

View File

@ -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;