Skip to content

Commit

Permalink
Add suppression of Python.h and change exit status
Browse files Browse the repository at this point in the history
  • Loading branch information
betatim committed Mar 15, 2017
1 parent ddcf6c1 commit 38464ae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Expand Up @@ -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 \
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 38464ae

Please sign in to comment.