make it possible to select SCANBUILD binary on command line
This commit is contained in:
parent
1e5ff76b36
commit
a88c8fb438
4
Makefile
4
Makefile
@ -151,9 +151,11 @@ usan: clean
|
|||||||
usan32: clean
|
usan32: clean
|
||||||
CFLAGS="-m32 -O3 -g -fsanitize=undefined" $(MAKE) test FUZZER_TIME="-T30s" NB_LOOPS=-i1
|
CFLAGS="-m32 -O3 -g -fsanitize=undefined" $(MAKE) test FUZZER_TIME="-T30s" NB_LOOPS=-i1
|
||||||
|
|
||||||
|
SCANBUILD ?= scan-build
|
||||||
|
SCANBUILD_FLAGS += --status-bugs -v --force-analyze-debug-code
|
||||||
.PHONY: staticAnalyze
|
.PHONY: staticAnalyze
|
||||||
staticAnalyze: clean
|
staticAnalyze: clean
|
||||||
CPPFLAGS=-DLZ4_DEBUG=1 CFLAGS=-g scan-build --status-bugs -v --force-analyze-debug-code $(MAKE) all V=1 DEBUGLEVEL=1
|
CPPFLAGS=-DLZ4_DEBUG=1 CFLAGS=-g $(SCANBUILD) $(SCANBUILD_FLAGS) $(MAKE) all V=1 DEBUGLEVEL=1
|
||||||
|
|
||||||
.PHONY: cppcheck
|
.PHONY: cppcheck
|
||||||
cppcheck:
|
cppcheck:
|
||||||
|
@ -1037,7 +1037,7 @@ int fuzzerTests(U32 seed, unsigned nbTests, unsigned startTest, double compressi
|
|||||||
op += 4;
|
op += 4;
|
||||||
if ((prefsPtr!= NULL) && prefsPtr->frameInfo.blockChecksumFlag) {
|
if ((prefsPtr!= NULL) && prefsPtr->frameInfo.blockChecksumFlag) {
|
||||||
U32 const bc32 = XXH32(op, 0, 0);
|
U32 const bc32 = XXH32(op, 0, 0);
|
||||||
op[0] = (BYTE)bc32; /* little endian format */
|
op[0] = (BYTE)bc32; /* little endian format */
|
||||||
op[1] = (BYTE)(bc32>>8);
|
op[1] = (BYTE)(bc32>>8);
|
||||||
op[2] = (BYTE)(bc32>>16);
|
op[2] = (BYTE)(bc32>>16);
|
||||||
op[3] = (BYTE)(bc32>>24);
|
op[3] = (BYTE)(bc32>>24);
|
||||||
|
Loading…
Reference in New Issue
Block a user