diff --git a/Makefile b/Makefile index 0dc55c55cc..09ab4c7af6 100644 --- a/Makefile +++ b/Makefile @@ -62,6 +62,8 @@ PYINCLUDE=$(shell python -c "from __future__ import print_function; \ CPPCHECK_SOURCES=$(filter-out lib/test%, $(wildcard lib/*.cc khmer/_khmer.cc) ) CPPCHECK=cppcheck --enable=all \ + --error-exitcode=1 \ + --suppress='*:*/include/python*/Python.h' \ --suppress='*:/usr/*' --platform=unix64 \ --std=c++11 --inline-suppr -Ilib -Ithird-party/bzip2 \ -Ithird-party/zlib -Ithird-party/smhasher \ @@ -163,7 +165,7 @@ cppcheck-result.xml: $(CPPSOURCES) ## cppcheck : run static analysis on C++ code cppcheck: FORCE - @$(CPPCHECK) + @$(CPPCHECK) || exit 1 cppcheck-long: FORCE @$(CPPCHECK) -Ithird-party/seqan/core/include