Add a code audit production using cppcheck.
authorEric S. Raymond <esr@thyrsus.com>
Sat, 8 Jul 2017 13:51:10 +0000 (09:51 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Sat, 8 Jul 2017 13:51:10 +0000 (09:51 -0400)
Makefile

index 6724a3b657bdf8deeffd6d887c63498b03d3acf6..62ec64a149d0049878f01a15fe134b21f954ad91 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -121,3 +121,6 @@ debug: CCFLAGS += -O0 --coverage -ggdb
 debug: linty
 debug: cheat
 
+CSUPPRESSIONS = --suppress=missingIncludeSystem --suppress=invalidscanf
+cppcheck:
+       cppcheck -I. --template gcc --enable=all $(CSUPPRESSIONS) *.[ch]