From: Yann Collet Date: Mon, 20 Aug 2018 18:40:10 +0000 (-0700) Subject: fix "unused parameter" in single-thread mode X-Git-Tag: v1.3.6^2~19^2~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c71c4f23d76f0668719d0e83b16ee572f5d9f0cb;p=thirdparty%2Fzstd.git fix "unused parameter" in single-thread mode within newly added ZSD_toFlushNow() --- diff --git a/lib/compress/zstd_compress.c b/lib/compress/zstd_compress.c index 34d4f5b0f..e09eef3d1 100644 --- a/lib/compress/zstd_compress.c +++ b/lib/compress/zstd_compress.c @@ -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 */ }