Suppress spurious unused parameter warning

This commit is contained in:
Kevin Svetlitski
2021-11-12 10:44:26 -08:00
parent 375e3aad6c
commit 7fbd126e08
+2
View File
@@ -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];
}