From be9195535682fe7525c4d3728ff923dd96efe515 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Thu, 20 Apr 2023 19:39:30 +0200 Subject: [PATCH] debug: suppress warning for scan-build app-layer-ssl.c:1497:27: error: call to undeclared function 'RecordAlreadyProcessed'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] DEBUG_VALIDATE_BUG_ON(RecordAlreadyProcessed(ssl_state->curr_connp)); ^ 1 error generated. --- src/util-validate.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/util-validate.h b/src/util-validate.h index 5f23fd75db..011e1bd0ae 100644 --- a/src/util-validate.h +++ b/src/util-validate.h @@ -102,6 +102,8 @@ #define DEBUG_VALIDATE_FLOW(f) #define DEBUG_VALIDATE_PACKET(p) #define DEBUG_VALIDATE_BUG_ON(exp) BUG_ON((exp)) +/* define macro so we also get #ifdef DEBUG_VALIDATION code */ +#define DEBUG_VALIDATION 1 #else /* DEBUG_VALIDATE */