Skip to content

Commit 189f6bc

Browse files
committed
Fix unused parameter warnings when building without VERIFY
1 parent da0092b commit 189f6bc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/util.h

+2
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@ static SECP256K1_INLINE void *manual_alloc(void** prealloc_ptr, size_t alloc_siz
140140
VERIFY_CHECK((unsigned char*)*prealloc_ptr >= (unsigned char*)base);
141141
VERIFY_CHECK(((unsigned char*)*prealloc_ptr - (unsigned char*)base) % ALIGNMENT == 0);
142142
VERIFY_CHECK((unsigned char*)*prealloc_ptr - (unsigned char*)base + aligned_alloc_size <= max_size);
143+
/* Avoid unused parameter warnings when building without VERIFY */
144+
(void) base; (void) max_size;
143145
ret = *prealloc_ptr;
144146
*prealloc_ptr = (unsigned char*)*prealloc_ptr + aligned_alloc_size;
145147
return ret;

0 commit comments

Comments
 (0)