From 0add4dbadbc972933b0c99813a155a4ed4852975 Mon Sep 17 00:00:00 2001 From: Anthony Towns Date: Fri, 1 Apr 2022 14:10:46 +1000 Subject: [PATCH] util/check: avoid unused parameter warnings --- src/util/check.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/check.h b/src/util/check.h index 80e973e7e2..4ee65c8d34 100644 --- a/src/util/check.h +++ b/src/util/check.h @@ -51,7 +51,7 @@ void assertion_fail(const char* file, int line, const char* func, const char* as /** Helper for Assert()/Assume() */ template -T&& inline_assertion_check(T&& val, const char* file, int line, const char* func, const char* assertion) +T&& inline_assertion_check(T&& val, [[maybe_unused]] const char* file, [[maybe_unused]] int line, [[maybe_unused]] const char* func, [[maybe_unused]] const char* assertion) { if constexpr (IS_ASSERT #ifdef ABORT_ON_FAILED_ASSUME