]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
fixed pass-through warning
authorYann Collet <cyan@fb.com>
Mon, 11 Sep 2017 21:37:03 +0000 (14:37 -0700)
committerYann Collet <cyan@fb.com>
Mon, 11 Sep 2017 21:37:03 +0000 (14:37 -0700)
lib/compress/zstd_compress.c

index 616a3d5818a6e0e84135277da1c4591a6f85ae9c..884a4e00dcacfef636d3872073a748e9cb834bf9 100644 (file)
@@ -389,6 +389,7 @@ size_t ZSTD_CCtxParam_setParameter(
         if (value == 0) return 0;
 #ifndef ZSTD_MULTITHREAD
         if (value > 1) return ERROR(parameter_unsupported);
+        return 0;
 #else
         return ZSTDMT_initializeCCtxParameters(params, value);
 #endif