From c71c4f23d76f0668719d0e83b16ee572f5d9f0cb Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Mon, 20 Aug 2018 11:40:10 -0700 Subject: [PATCH] fix "unused parameter" in single-thread mode within newly added ZSD_toFlushNow() --- lib/compress/zstd_compress.c | 1 + 1 file changed, 1 insertion(+) 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 */ }