summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2018-09-18 23:52:02 (GMT)
committerYann Collet <cyan@fb.com>2018-09-18 23:52:02 (GMT)
commit5a10ed2f7bb6fc9bffbabb2035ff1515e21bf25c (patch)
tree39084e05bdfd5f391d229b7ffff79ada08378d97 /Makefile
parent697bd904b256e9927b65d23e187adb5dddf39399 (diff)
downloadlz4-5a10ed2f7bb6fc9bffbabb2035ff1515e21bf25c.zip
lz4-5a10ed2f7bb6fc9bffbabb2035ff1515e21bf25c.tar.gz
lz4-5a10ed2f7bb6fc9bffbabb2035ff1515e21bf25c.tar.bz2
added cppcheck
as Makefile target and Travis CI test. Fixed last cppcheck warnings in tests and examples
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index e8e6473..2f8b85c 100644
--- a/Makefile
+++ b/Makefile
@@ -148,9 +148,14 @@ usan: clean
usan32: clean
CFLAGS="-m32 -O3 -g -fsanitize=undefined" $(MAKE) test FUZZER_TIME="-T30s" NB_LOOPS=-i1
+.PHONY: staticAnalyze
staticAnalyze: clean
CFLAGS=-g scan-build --status-bugs -v $(MAKE) all
+.PHONY: cppcheck
+cppcheck:
+ cppcheck . --force --enable=warning,portability,performance,style --error-exitcode=1 > /dev/null
+
platformTest: clean
@echo "\n ---- test lz4 with $(CC) compiler ----"
@$(CC) -v