SNMP: Fix warning found by -Wunused-const-variable
Change-Id: If3fcab128e3e6bce04f4922568ab7ff8575b01fe warning: unused variable 'smux_types' [-Wunused-const-variable] Reviewed-on: https://code.wireshark.org/review/5194 Reviewed-by: Evan Huus <eapache@gmail.com>
This commit is contained in:
parent
dea982b6eb
commit
d094ca8bd9
|
@ -300,6 +300,7 @@ static const value_string sec_models[] = {
|
|||
{ 0, NULL }
|
||||
};
|
||||
|
||||
#if 0
|
||||
/* SMUX PDU types */
|
||||
#define SMUX_MSG_OPEN 0
|
||||
#define SMUX_MSG_CLOSE 1
|
||||
|
@ -315,6 +316,7 @@ static const value_string smux_types[] = {
|
|||
{ SMUX_MSG_SOUT, "Commit Or Rollback" },
|
||||
{ 0, NULL }
|
||||
};
|
||||
#endif
|
||||
|
||||
|
||||
#define SNMP_IPA 0 /* IP Address */
|
||||
|
|
|
@ -308,7 +308,7 @@ static int hf_snmp_priority = -1; /* INTEGER_M1_2147483647 */
|
|||
static int hf_snmp_operation = -1; /* T_operation */
|
||||
|
||||
/*--- End of included file: packet-snmp-hf.c ---*/
|
||||
#line 234 "../../asn1/snmp/packet-snmp-template.c"
|
||||
#line 237 "../../asn1/snmp/packet-snmp-template.c"
|
||||
|
||||
/* Initialize the subtree pointers */
|
||||
static gint ett_smux = -1;
|
||||
|
@ -348,7 +348,7 @@ static gint ett_snmp_SimpleOpen_U = -1;
|
|||
static gint ett_snmp_RReqPDU_U = -1;
|
||||
|
||||
/*--- End of included file: packet-snmp-ett.c ---*/
|
||||
#line 250 "../../asn1/snmp/packet-snmp-template.c"
|
||||
#line 253 "../../asn1/snmp/packet-snmp-template.c"
|
||||
|
||||
static expert_field ei_snmp_failed_decrypted_data_pdu = EI_INIT;
|
||||
static expert_field ei_snmp_decrypted_data_bad_formatted = EI_INIT;
|
||||
|
@ -402,6 +402,7 @@ static const value_string sec_models[] = {
|
|||
{ 0, NULL }
|
||||
};
|
||||
|
||||
#if 0
|
||||
/* SMUX PDU types */
|
||||
#define SMUX_MSG_OPEN 0
|
||||
#define SMUX_MSG_CLOSE 1
|
||||
|
@ -417,6 +418,7 @@ static const value_string smux_types[] = {
|
|||
{ SMUX_MSG_SOUT, "Commit Or Rollback" },
|
||||
{ 0, NULL }
|
||||
};
|
||||
#endif
|
||||
|
||||
|
||||
#define SNMP_IPA 0 /* IP Address */
|
||||
|
@ -3080,7 +3082,7 @@ static int dissect_SMUX_PDUs_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, prot
|
|||
|
||||
|
||||
/*--- End of included file: packet-snmp-fn.c ---*/
|
||||
#line 1868 "../../asn1/snmp/packet-snmp-template.c"
|
||||
#line 1873 "../../asn1/snmp/packet-snmp-template.c"
|
||||
|
||||
|
||||
guint
|
||||
|
@ -3902,7 +3904,7 @@ void proto_register_snmp(void) {
|
|||
NULL, HFILL }},
|
||||
|
||||
/*--- End of included file: packet-snmp-hfarr.c ---*/
|
||||
#line 2425 "../../asn1/snmp/packet-snmp-template.c"
|
||||
#line 2430 "../../asn1/snmp/packet-snmp-template.c"
|
||||
};
|
||||
|
||||
/* List of subtrees */
|
||||
|
@ -3942,7 +3944,7 @@ void proto_register_snmp(void) {
|
|||
&ett_snmp_RReqPDU_U,
|
||||
|
||||
/*--- End of included file: packet-snmp-ettarr.c ---*/
|
||||
#line 2441 "../../asn1/snmp/packet-snmp-template.c"
|
||||
#line 2446 "../../asn1/snmp/packet-snmp-template.c"
|
||||
};
|
||||
static ei_register_info ei[] = {
|
||||
{ &ei_snmp_failed_decrypted_data_pdu, { "snmp.failed_decrypted_data_pdu", PI_MALFORMED, PI_WARN, "Failed to decrypt encryptedPDU", EXPFILL }},
|
||||
|
|
Loading…
Reference in New Issue