Module: check_mk
Branch: master
Commit: 1af168a2c4af86607d69f9d2972c6250bdaa400e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=1af168a2c4af86…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Thu Aug 11 16:24:48 2016 +0200
Suppress cppcheck warnings about missing system includes.
They are actually useless, cppcheck knows about them out-of-the-box and
would choke on them, anyway.
With this change we can actually go back to our zero-tolerance strategy on
Jenkins.
---
Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index 4602aa1..6acc8fb 100644
--- a/Makefile
+++ b/Makefile
@@ -296,13 +296,13 @@ analyze: livestatus/config.h
cppcheck: compile_commands.json
@./compiled_sources | \
sed 's/^"\(.*\)"$$/\1/' | \
- $(CPPCHECK) --max-configs=16 -UCMC --enable=all --inline-suppr -I livestatus/src -I
livestatus --file-list=- --quiet --template=gcc
+ $(CPPCHECK) --max-configs=16 -UCMC --enable=all --suppress=missingIncludeSystem
--inline-suppr -I livestatus/src -I livestatus --file-list=- --quiet --template=gcc
# XML output into file intended for machine processing.
cppcheck-xml: compile_commands.json
@./compiled_sources | \
sed 's/^"\(.*\)"$$/\1/' | \
- $(CPPCHECK) --max-configs=16 -UCMC --enable=all --inline-suppr -I livestatus/src -I
livestatus --file-list=- --quiet --template=gcc --xml --xml-version=2 2>
cppcheck-result.xml
+ $(CPPCHECK) --max-configs=16 -UCMC --enable=all --suppress=missingIncludeSystem
--inline-suppr -I livestatus/src -I livestatus --file-list=- --quiet --template=gcc --xml
--xml-version=2 2> cppcheck-result.xml
# TODO: We should probably handle this rule via AM_EXTRA_RECURSIVE_TARGETS in
# src/configure.ac, but this needs at least automake-1.13, which in turn is only