From f22adae984f25a7ba625cd9ebe1d0cbea2c85861 Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Thu, 19 Jan 2017 13:46:30 -0800 Subject: [PATCH] fixed minor warning (unused variable) in fuzzer --- programs/zstdcli.c | 2 +- tests/zstreamtest.c | 10 +++------- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/programs/zstdcli.c b/programs/zstdcli.c index 0474c96c4..c9d8100eb 100644 --- a/programs/zstdcli.c +++ b/programs/zstdcli.c @@ -561,7 +561,7 @@ int main(int argCount, const char* argv[]) } } #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 ((filenameIdx>1) & (displayLevel==2)) displayLevel=1; diff --git a/tests/zstreamtest.c b/tests/zstreamtest.c index 8720ec78a..6cf6c4a09 100644 --- a/tests/zstreamtest.c +++ b/tests/zstreamtest.c @@ -769,13 +769,9 @@ static int fuzzerTests_MT(U32 seed, U32 nbTests, unsigned startTest, double comp /* random dictionary selection */ dictSize = 0; dict = NULL; - { U64 const pledgedSrcSize = (FUZ_rand(&lseed) & 3) ? 0 : maxTestSize; - ZSTD_parameters params = ZSTD_getParams(cLevel, pledgedSrcSize, dictSize); - 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)); - } } } + { size_t const initError = ZSTDMT_initCStream(zc, cLevel); + CHECK (ZSTD_isError(initError),"ZSTD_initCStream_advanced error : %s", ZSTD_getErrorName(initError)); + } } /* multi-segments compression test */ XXH64_reset(&xxhState, 0);