From: Philippe Antoine Date: Wed, 5 Jun 2024 09:48:54 +0000 (+0200) Subject: ci: fix and test with Wunused-macros X-Git-Tag: suricata-8.0.0-beta1~1192 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F11253%2Fhead;p=thirdparty%2Fsuricata.git ci: fix and test with Wunused-macros Ticket: 6937 Completes ce9bfba76a785e6a02cbbe796a23be6c4e5bc553 --- diff --git a/configure.ac b/configure.ac index daad418208..5ae955d397 100644 --- a/configure.ac +++ b/configure.ac @@ -2263,7 +2263,7 @@ fi ]) AC_SUBST(RUST_FEATURES) - AC_ARG_ENABLE(enable_warnings, + AC_ARG_ENABLE(warnings, AS_HELP_STRING([--enable-warnings], [Enable supported C compiler warnings]),[enable_warnings=$enableval],[enable_warnings=no]) AS_IF([test "x$enable_warnings" = "xyes"], [ # check if our compiler supports -Wunused-macros diff --git a/src/app-layer-htp.c b/src/app-layer-htp.c index 3d8d171028..03f49ff040 100644 --- a/src/app-layer-htp.c +++ b/src/app-layer-htp.c @@ -99,10 +99,6 @@ StreamingBufferConfig htp_sbcfg = STREAMING_BUFFER_CONFIG_INITIALIZER; /** Limit to the number of libhtp messages that can be handled */ #define HTP_MAX_MESSAGES 512 -/** a boundary should be smaller in size */ -// RFC 2046 states that max boundary size is 70 -#define HTP_BOUNDARY_MAX 200U - SC_ATOMIC_DECLARE(uint32_t, htp_config_flags); #ifdef DEBUG