]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
fix "unused parameter" in single-thread mode
authorYann Collet <cyan@fb.com>
Mon, 20 Aug 2018 18:40:10 +0000 (11:40 -0700)
committerYann Collet <cyan@fb.com>
Mon, 20 Aug 2018 18:40:10 +0000 (11:40 -0700)
within newly added ZSD_toFlushNow()

lib/compress/zstd_compress.c

index 34d4f5b0f54ffa2702a5434ab7ae1b2249505f4f..e09eef3d1059ea805cbe45cc502d0e8093f3e171 100644 (file)
@@ -916,6 +916,7 @@ size_t ZSTD_toFlushNow(ZSTD_CCtx* cctx)
         return ZSTDMT_toFlushNow(cctx->mtctx);
     }
 #endif
+    (void)cctx;
     return 0;   /* over-simplification; could also check if context is currently running in streaming mode, and in which case, report how many bytes are left to be flushed within output buffer */
 }