summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-02-04 06:08:02 +0000
committerDavid Robillard <d@drobilla.net>2011-02-04 06:08:02 +0000
commit95d24f125d183d2ec9d19b8ec3c8b1c8038a4c3d (patch)
treecce827f82f944ace943fba46b036813734ff0367 /test
parent57f3c14560105b49a85e1276c3f2acc27667490e (diff)
downloadraul-95d24f125d183d2ec9d19b8ec3c8b1c8038a4c3d.tar.gz
raul-95d24f125d183d2ec9d19b8ec3c8b1c8038a4c3d.tar.bz2
raul-95d24f125d183d2ec9d19b8ec3c8b1c8038a4c3d.zip
Fix warnings when building with --strict (but without --debug).
git-svn-id: http://svn.drobilla.net/lad/trunk/raul@2909 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'test')
-rw-r--r--test/midi_ringbuffer_test.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/midi_ringbuffer_test.cpp b/test/midi_ringbuffer_test.cpp
index cc5cdd5..19aa82f 100644
--- a/test/midi_ringbuffer_test.cpp
+++ b/test/midi_ringbuffer_test.cpp
@@ -20,8 +20,10 @@ read_write_test(EventRingBuffer& rb, unsigned offset)
snprintf(reinterpret_cast<char*>(write_buf), 5, "%d", offset);
size = strlen(reinterpret_cast<const char*>(write_buf));
+#ifndef NDEBUG
const size_t written = rb.write(t, size, write_buf);
assert(written == size);
+#endif
rb.read(&t, &size, read_buf);