]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
snmp: fix 'defined but not used' warning
authorVictor Julien <victor@inliniac.net>
Thu, 23 May 2019 04:49:23 +0000 (06:49 +0200)
committerPierre Chifflier <chifflier@wzdftpd.net>
Thu, 6 Jun 2019 08:15:59 +0000 (10:15 +0200)
Remove HAVE_RUST guards as well.

src/app-layer-snmp.c

index f2ae0add60fad5cc13b89128204989306101f812..3f39148b1ef40329b0e768776071813c1fe296e6 100644 (file)
 
 #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 */