Cleanup static analyser

This commit is contained in:
Patrick Pelissier committed 2020-10-31 00:12:40 +01:00
1 parent 0854136005
commit 37d47cb0f1
1 file changed
+5 -3
+5 -3
View File
@@ -197,12 +197,14 @@ synthesis:
# Code analyzer tools
#####################################################################################################
valgrind:
$(MAKE) `ls test-*.c|$(SED) 's/\.c/\.valgrind/g'`
# valgrind is not working well with MT code.
# Use of _fsanitize=address should cover all valgrind checks.
#valgrind:
# $(MAKE) `ls test-*.c|$(SED) 's/\.c/\.valgrind/g'`
scan-build: clean
$(RM) -rf ./mlib-report
scan-build -o ./mlib-report $(MAKE) check XCFLAGS="-std=c99"
scan-build -o ./mlib-report $(MAKE) exe XCFLAGS="-std=c99"
sanitize:
$(MAKE) clean check XCFLAGS="-fsanitize=address,undefined,leak"