From 27edfd9da65ee8e1b73c5d0169621fcd70ea0a8f Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 15 Jul 2020 22:27:20 +0200 Subject: Fix unused variable warning in release builds --- lv2/atom/forge-overflow-test.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lv2/atom/forge-overflow-test.c b/lv2/atom/forge-overflow-test.c index a580d69..7c1b12e 100644 --- a/lv2/atom/forge-overflow-test.c +++ b/lv2/atom/forge-overflow-test.c @@ -124,6 +124,7 @@ test_sequence_overflow(void) assert(capacity >= sizeof(LV2_Atom_Sequence) || !frame.ref); assert(capacity >= sizeof(LV2_Atom_Sequence) || !ref); + (void)ref; lv2_atom_forge_frame_time(&forge, 0); lv2_atom_forge_int(&forge, 42); @@ -155,6 +156,7 @@ test_vector_head_overflow(void) assert(capacity >= sizeof(LV2_Atom_Vector) || !frame.ref); assert(capacity >= sizeof(LV2_Atom_Vector) || !ref); + (void)ref; lv2_atom_forge_int(&forge, 1); lv2_atom_forge_int(&forge, 2); @@ -186,6 +188,7 @@ test_vector_overflow(void) &forge, sizeof(int32_t), forge.Int, 3, vec); assert(capacity >= sizeof(LV2_Atom_Vector) || !ref); + (void)ref; free(buf); } @@ -212,6 +215,7 @@ test_tuple_overflow(void) assert(capacity >= sizeof(LV2_Atom_Tuple) || !frame.ref); assert(capacity >= sizeof(LV2_Atom_Tuple) || !ref); + (void)ref; lv2_atom_forge_int(&forge, 1); lv2_atom_forge_float(&forge, 2.0f); -- cgit v1.2.1