aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-07-15 22:27:20 +0200
committerDavid Robillard <d@drobilla.net>2020-07-16 11:13:59 +0200
commit27edfd9da65ee8e1b73c5d0169621fcd70ea0a8f (patch)
treebd6575b9da445e3380fbaf7dec82a04215ef0272
parent0bd60f130f549dd0c0549aa2ec6ffa44cdc6fd22 (diff)
downloadlv2-27edfd9da65ee8e1b73c5d0169621fcd70ea0a8f.tar.xz
Fix unused variable warning in release builds
-rw-r--r--lv2/atom/forge-overflow-test.c4
1 files changed, 4 insertions, 0 deletions
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);