summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/midi_ringbuffer_test.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/midi_ringbuffer_test.cpp b/tests/midi_ringbuffer_test.cpp
index 98c251b..05a7e35 100644
--- a/tests/midi_ringbuffer_test.cpp
+++ b/tests/midi_ringbuffer_test.cpp
@@ -17,7 +17,9 @@ read_write_test(EventRingBuffer& rb, unsigned offset)
snprintf((char*)buf, 5, "%d", offset);
size = strlen((char*)buf);
+#ifndef NDEBUG
size_t written = rb.write(t, size, buf);
+#endif
assert(written == size);
for (size_t i=0; i < 4; ++i)