diff options
author | Anthony Towns <aj@erisian.com.au> | 2022-04-01 14:10:46 +1000 |
---|---|---|
committer | Anthony Towns <aj@erisian.com.au> | 2022-04-01 14:10:46 +1000 |
commit | 0add4dbadbc972933b0c99813a155a4ed4852975 (patch) | |
tree | a2959b8470a3044ea98aa2ed29f8faf376170159 /src/util/check.h | |
parent | 1021e4cc6877f66729e01a6662d5877e718ed276 (diff) | |
download | bitcoin-0add4dbadbc972933b0c99813a155a4ed4852975.tar.xz |
util/check: avoid unused parameter warnings
Diffstat (limited to 'src/util/check.h')
-rw-r--r-- | src/util/check.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 <bool IS_ASSERT, typename T> -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 |