diff options
author | Yann Collet <cyan@fb.com> | 2018-09-18 23:52:02 (GMT) |
---|---|---|
committer | Yann Collet <cyan@fb.com> | 2018-09-18 23:52:02 (GMT) |
commit | 5a10ed2f7bb6fc9bffbabb2035ff1515e21bf25c (patch) | |
tree | 39084e05bdfd5f391d229b7ffff79ada08378d97 /Makefile | |
parent | 697bd904b256e9927b65d23e187adb5dddf39399 (diff) | |
download | lz4-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-- | Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |