From 189f6bcfef6578b89e21f937b24060f74bd18f00 Mon Sep 17 00:00:00 2001 From: Jonas Nick Date: Mon, 4 Oct 2021 19:05:32 +0000 Subject: [PATCH] Fix unused parameter warnings when building without VERIFY --- src/util.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/util.h b/src/util.h index f788468..f6b72a6 100644 --- a/src/util.h +++ b/src/util.h @@ -140,6 +140,8 @@ static SECP256K1_INLINE void *manual_alloc(void** prealloc_ptr, size_t alloc_siz VERIFY_CHECK((unsigned char*)*prealloc_ptr >= (unsigned char*)base); VERIFY_CHECK(((unsigned char*)*prealloc_ptr - (unsigned char*)base) % ALIGNMENT == 0); VERIFY_CHECK((unsigned char*)*prealloc_ptr - (unsigned char*)base + aligned_alloc_size <= max_size); + /* Avoid unused parameter warnings when building without VERIFY */ + (void) base; (void) max_size; ret = *prealloc_ptr; *prealloc_ptr = (unsigned char*)*prealloc_ptr + aligned_alloc_size; return ret;