]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
fixed minor warning (unused variable) in fuzzer
authorYann Collet <cyan@fb.com>
Thu, 19 Jan 2017 21:46:30 +0000 (13:46 -0800)
committerYann Collet <cyan@fb.com>
Thu, 19 Jan 2017 21:46:30 +0000 (13:46 -0800)
programs/zstdcli.c
tests/zstreamtest.c

index 0474c96c4f7bdece97bb7d36a2e9fbecc0953efc..c9d8100eb79e57d80ca4b6441fd1f30bc8078272 100644 (file)
@@ -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;
 
index 8720ec78a76279dcf3fa9f8e3223b3d9023e1af4..6cf6c4a09a62e3a3baa483e5498c4e9fede09a5c 100644 (file)
@@ -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);