snmp: fix 'defined but not used' warning

Remove HAVE_RUST guards as well.
pull/3926/head
Victor Julien 6 years ago committed by Pierre Chifflier
parent 8c61cfdca5
commit 39cf5b0c8b

@ -35,35 +35,10 @@
#include "app-layer-snmp.h"
#ifdef HAVE_RUST
#include "rust-snmp-snmp-gen.h"
static void SNMPParserRegisterTests(void);
void RegisterSNMPParsers(void)
{
rs_register_snmp_parser();
#ifdef UNITTESTS
AppLayerParserRegisterProtocolUnittests(IPPROTO_UDP, ALPROTO_SNMP,
SNMPParserRegisterTests);
#endif
}
#ifdef UNITTESTS
#endif
static void SNMPParserRegisterTests(void)
{
#ifdef UNITTESTS
#endif
}
#else /* HAVE_RUST */
void RegisterSNMPParsers(void)
{
}
#endif /* HAVE_RUST */

Loading…
Cancel
Save