From 358bc05fa197ae9b99deb6b5797e9933a2b18804 Mon Sep 17 00:00:00 2001 From: Philippe Antoine Date: Wed, 5 Jun 2024 11:48:54 +0200 Subject: [PATCH] ci: fix and test with Wunused-macros Ticket: 6937 Completes ce9bfba76a785e6a02cbbe796a23be6c4e5bc553 --- configure.ac | 2 +- src/app-layer-htp.c | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) 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 -- 2.47.2