From 778c1160d586c8f73a89493a3051991e9f46ace2 Mon Sep 17 00:00:00 2001 From: Kamil Dudka Date: Tue, 13 Oct 2020 14:00:03 +0200 Subject: [PATCH] cscppc: invoke cppcheck with -D__CPPCHECK__ ... so that developers can conditionally provide simplified definitions of their macros in cases where cppcheck would unnecessarily report false positives on each use of the original macro definition. Reported-by: Adrian Reber --- cscppc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cscppc.c b/cscppc.c index 5979b0d..26450c6 100644 --- a/cscppc.c +++ b/cscppc.c @@ -54,6 +54,7 @@ static const char *analyzer_def_arg_list[] = { #else #error "Unknown word size" #endif + "-D__CPPCHECK__", "--inline-suppr", "--quiet", "--template={file}:{line}: {severity}: {id}(CWE-{cwe}): {message}",