Merge pull request #143 from Spudz76/pr-mo-fix-unused-warning

Fix unused warning with C++17 [[maybe_unused]] decoration
This commit is contained in:
MoneroOcean 2024-06-01 08:43:00 -07:00 committed by GitHub
commit 42204df0ac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);
}