mirror of
https://github.com/facebook/zstd.git
synced 2025-08-01 09:47:01 +03:00
fixed minor warning (unused variable) in fuzzer
This commit is contained in:
@ -561,7 +561,7 @@ int main(int argCount, const char* argv[])
|
|||||||
} }
|
} }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* No warning message in pipe mode (stdin + stdout) or multi-files mode */
|
/* No status message in pipe mode (stdin - stdout) or multi-files mode */
|
||||||
if (!strcmp(filenameTable[0], stdinmark) && outFileName && !strcmp(outFileName,stdoutmark) && (displayLevel==2)) displayLevel=1;
|
if (!strcmp(filenameTable[0], stdinmark) && outFileName && !strcmp(outFileName,stdoutmark) && (displayLevel==2)) displayLevel=1;
|
||||||
if ((filenameIdx>1) & (displayLevel==2)) displayLevel=1;
|
if ((filenameIdx>1) & (displayLevel==2)) displayLevel=1;
|
||||||
|
|
||||||
|
@ -769,13 +769,9 @@ static int fuzzerTests_MT(U32 seed, U32 nbTests, unsigned startTest, double comp
|
|||||||
/* random dictionary selection */
|
/* random dictionary selection */
|
||||||
dictSize = 0;
|
dictSize = 0;
|
||||||
dict = NULL;
|
dict = NULL;
|
||||||
{ U64 const pledgedSrcSize = (FUZ_rand(&lseed) & 3) ? 0 : maxTestSize;
|
{ size_t const initError = ZSTDMT_initCStream(zc, cLevel);
|
||||||
ZSTD_parameters params = ZSTD_getParams(cLevel, pledgedSrcSize, dictSize);
|
CHECK (ZSTD_isError(initError),"ZSTD_initCStream_advanced error : %s", ZSTD_getErrorName(initError));
|
||||||
params.fParams.checksumFlag = FUZ_rand(&lseed) & 1;
|
} }
|
||||||
params.fParams.noDictIDFlag = FUZ_rand(&lseed) & 1;
|
|
||||||
{ size_t const initError = ZSTDMT_initCStream(zc, cLevel);
|
|
||||||
CHECK (ZSTD_isError(initError),"ZSTD_initCStream_advanced error : %s", ZSTD_getErrorName(initError));
|
|
||||||
} } }
|
|
||||||
|
|
||||||
/* multi-segments compression test */
|
/* multi-segments compression test */
|
||||||
XXH64_reset(&xxhState, 0);
|
XXH64_reset(&xxhState, 0);
|
||||||
|
Reference in New Issue
Block a user