We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da0092b commit 189f6bcCopy full SHA for 189f6bc
src/util.h
@@ -140,6 +140,8 @@ static SECP256K1_INLINE void *manual_alloc(void** prealloc_ptr, size_t alloc_siz
140
VERIFY_CHECK((unsigned char*)*prealloc_ptr >= (unsigned char*)base);
141
VERIFY_CHECK(((unsigned char*)*prealloc_ptr - (unsigned char*)base) % ALIGNMENT == 0);
142
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;
145
ret = *prealloc_ptr;
146
*prealloc_ptr = (unsigned char*)*prealloc_ptr + aligned_alloc_size;
147
return ret;
0 commit comments