diff --git a/Makefile.am b/Makefile.am index 7ceb2ba8..6ffe1b49 100644 --- a/Makefile.am +++ b/Makefile.am @@ -42,7 +42,15 @@ MAINTAINERCLEANFILES = \ ylwrap cppcheck: - cppcheck --suppressions-list=./test/cppcheck_suppressions.txt --enable=all --inconclusive --template="{file},{line},{severity},{id},{message}" -U YYSTYPE -U YY_USER_INIT --std=posix . + cppcheck \ + --suppressions-list=./test/cppcheck_suppressions.txt \ + --enable=all \ + --inconclusive \ + --template="{file},{line},{severity},{id},{message}" \ + -U YYSTYPE \ + -U YY_USER_INIT \ + --std=posix . 2> cppcheck.txt + cat cppcheck.txt @VALGRIND_CHECK_RULES@ VALGRIND_SUPPRESSIONS_FILES = valgrind_suppressions.txt diff --git a/test/cppcheck_suppressions.txt b/test/cppcheck_suppressions.txt index 8455f6e5..7d8fcfa1 100644 --- a/test/cppcheck_suppressions.txt +++ b/test/cppcheck_suppressions.txt @@ -34,4 +34,5 @@ readdirCalled:test/common/modsecurity_test.cc:114 missingInclude:* unreadVariable:test/regression/regression.cc:380 shiftNegative:src/utils/msc_tree.cc -nullPointerRedundantCheck::src/utils/msc_tree.cc +nullPointerRedundantCheck:src/utils/msc_tree.cc:654 +