mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 03:34:29 +03:00
cppcheck: Organizes the suppression list
- cppcheck warnings will lead to build failure
This commit is contained in:
16
Makefile.am
16
Makefile.am
@@ -56,13 +56,15 @@ parser:
|
||||
|
||||
|
||||
cppcheck:
|
||||
@cppcheck \
|
||||
--suppressions-list=./test/cppcheck_suppressions.txt \
|
||||
--enable=all \
|
||||
--inconclusive \
|
||||
--template="warning: {file},{line},{severity},{id},{message}" \
|
||||
--std=posix . 2> cppcheck.txt
|
||||
cat cppcheck.txt | grep -v "/ lalr1.cc"
|
||||
@cppcheck -U YYSTYPE \
|
||||
--suppressions-list=./test/cppcheck_suppressions.txt \
|
||||
--enable=all \
|
||||
--inconclusive \
|
||||
--template="warning: {file},{line},{severity},{id},{message}" \
|
||||
-I headers -I . -I others -I src -I others/mbedtls -I src/parser \
|
||||
--error-exitcode=0 \
|
||||
-i "src/parser/seclang-parser.cc" -i "src/parser/seclang-scanner.cc" \
|
||||
.
|
||||
|
||||
check-static: cppcheck
|
||||
|
||||
|
Reference in New Issue
Block a user