scan-build: treat as debug validate

(cherry picked from commit bcf8187443)
pull/8760/head
Victor Julien 3 years ago
parent 00a9edae3e
commit 27ef9a96af

@ -36,6 +36,12 @@
#define _GNU_SOURCE
#define __USE_GNU
#if defined(__clang_analyzer__)
/* clang analyzer acts as DEBUG_VALIDATION in some places, so
* force this so #ifdef DEBUG_VALIDATION code gets included */
#define DEBUG_VALIDATION 1
#endif
#if HAVE_CONFIG_H
#include <autoconf.h>
#endif

@ -96,13 +96,6 @@
#define DEBUG_VALIDATE_BUG_ON(exp) BUG_ON((exp))
#elif defined(__clang_analyzer__)
#define DEBUG_ASSERT_FLOW_LOCKED(f)
#define DEBUG_VALIDATE_FLOW(f)
#define DEBUG_VALIDATE_PACKET(p)
#define DEBUG_VALIDATE_BUG_ON(exp) BUG_ON((exp))
#else /* DEBUG_VALIDATE */
#define DEBUG_ASSERT_FLOW_LOCKED(f)

Loading…
Cancel
Save