From 7fbd126e089a1359ce7c9729be91ee546312af1a Mon Sep 17 00:00:00 2001 From: Kevin Svetlitski Date: Thu, 11 Nov 2021 14:37:02 -0800 Subject: [PATCH] Suppress spurious unused parameter warning --- programs/fileio.c | 2 ++ 1 file changed, 2 insertions(+) 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]; }