fixed conversion warnings
This commit is contained in:
parent
fa158b4118
commit
201149f8eb
@ -43,7 +43,8 @@ PYTHON ?= python3
|
||||
|
||||
CFLAGS ?= -O3 # can select custom flags. For example : CFLAGS="-O2 -g" make
|
||||
CFLAGS += -Wall -Wextra -Wundef -Wcast-qual -Wcast-align -Wshadow -Wswitch-enum \
|
||||
-Wdeclaration-after-statement -Wstrict-prototypes
|
||||
-Wdeclaration-after-statement -Wstrict-prototypes \
|
||||
-Wpointer-arith -Wstrict-aliasing=1
|
||||
CFLAGS += $(MOREFLAGS)
|
||||
CPPFLAGS:= -I$(LZ4DIR) -DXXH_NAMESPACE=LZ4_
|
||||
FLAGS := $(CFLAGS) $(CPPFLAGS) $(LDFLAGS)
|
||||
|
@ -300,24 +300,8 @@ static int FUZ_test(U32 seed, U32 nbCycles, const U32 startCycle, const double c
|
||||
}
|
||||
|
||||
/* move to startCycle */
|
||||
for (cycleNb = 0; cycleNb < startCycle; cycleNb++) {
|
||||
U32 randState = FUZ_rand(&coreRandState) ^ PRIME3;
|
||||
|
||||
if (0) { /* some problems can be related to dictionary re-use; in this case, enable this loop */
|
||||
int const blockSize = FUZ_rand(&randState) % FUZ_MAX_BLOCK_SIZE;
|
||||
int const blockStart = FUZ_rand(&randState) % (COMPRESSIBLE_NOISE_LENGTH - blockSize);
|
||||
int const dictSizeRand = FUZ_rand(&randState) % FUZ_MAX_DICT_SIZE;
|
||||
int const dictSize = MIN(dictSizeRand, blockStart);
|
||||
char* const block = ((char*)CNBuffer) + blockStart;
|
||||
const char* const dict = block - dictSize;
|
||||
FUZ_displayUpdate(cycleNb);
|
||||
LZ4_loadDict(&LZ4dict, dict, dictSize);
|
||||
LZ4_compress_fast_continue(&LZ4dict, block, compressedBuffer, blockSize, compressedBufferSize, 1);
|
||||
LZ4_loadDict(&LZ4dict, dict, dictSize);
|
||||
LZ4_compress_fast_continue(&LZ4dict, block, compressedBuffer, blockSize, compressedBufferSize, 1);
|
||||
LZ4_loadDict(&LZ4dict, dict, dictSize);
|
||||
LZ4_compress_fast_continue(&LZ4dict, block, compressedBuffer, blockSize, compressedBufferSize, 1);
|
||||
} }
|
||||
for (cycleNb = 0; cycleNb < startCycle; cycleNb++)
|
||||
(void) FUZ_rand(&coreRandState); /* sync coreRandState */
|
||||
|
||||
/* Main test loop */
|
||||
for (cycleNb = startCycle;
|
||||
|
Loading…
Reference in New Issue
Block a user