From 9f5280d8b3632bf3c7f1cc00fbe381d68ec1f7a1 Mon Sep 17 00:00:00 2001 From: Tony Butler Date: Fri, 31 May 2024 06:48:47 -0600 Subject: [PATCH] Fix unused warning with C++17 [[maybe_unused]] decoration --- src/crypto/cn/CryptoNight_x86.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crypto/cn/CryptoNight_x86.h b/src/crypto/cn/CryptoNight_x86.h index 5a05758f..8e1486a9 100644 --- a/src/crypto/cn/CryptoNight_x86.h +++ b/src/crypto/cn/CryptoNight_x86.h @@ -77,7 +77,7 @@ static inline void do_skein_hash(const uint8_t *input, size_t len, uint8_t *outp } static inline void do_flex_skein_hash(const uint8_t* input, size_t len, uint8_t* output) { - int r = skein_hash(512, input, 8 * len, (uint8_t*)output); + [[maybe_unused]] int r = skein_hash(512, input, 8 * len, (uint8_t*)output); assert(SKEIN_SUCCESS == r); }