Skip to content

Commit 10f9bd8

Browse files
Merge #987: Fix unused parameter warnings when building without VERIFY
189f6bc Fix unused parameter warnings when building without VERIFY (Jonas Nick) Pull request description: This commit makes `./configure --enable-coverage && make check` free of warnings. ACKs for top commit: practicalswift: cr ACK 189f6bc elichai: utACK 189f6bc siv2r: Tested ACK 189f6bc Tree-SHA512: 727fe0e40ff61f404780b32dfa4102a58bed9d922e61bd17ddaaf1243b0c06edd9697ff4763b5e92d033e7db3778193bee07d85cfa3b9c46d45e5fec3f568009
2 parents da0092b + 189f6bc commit 10f9bd8

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)