From: Kevin Svetlitski Date: Thu, 11 Nov 2021 22:37:02 +0000 (-0800) Subject: Suppress spurious unused parameter warning X-Git-Tag: v1.5.1~1^2~60^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7fbd126e089a1359ce7c9729be91ee546312af1a;p=thirdparty%2Fzstd.git Suppress spurious unused parameter warning --- diff --git a/programs/fileio.c b/programs/fileio.c index cf3e7414c..c1881a4f0 100644 --- a/programs/fileio.c +++ b/programs/fileio.c @@ -1784,6 +1784,8 @@ FIO_compressFilename_srcFile(FIO_ctx_t* const fCtx, static const char* checked_index(const char* options[], size_t length, size_t index) { assert(index < length); + // Necessary to avoid warnings since -O3 will omit the above `assert` + (void) length; return options[index]; }