diff options
author | David Robillard <d@drobilla.net> | 2023-02-03 14:56:42 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-02-03 14:56:42 -0500 |
commit | 0634c9a6ac22d520ea63beab44ade590816f7f9e (patch) | |
tree | eaa54a2944f63cfec157234a7e82302f488afeeb /test/test_ring.c | |
parent | c269ac85e42aad72ac685a4953a7167e8378613d (diff) | |
download | zix-0634c9a6ac22d520ea63beab44ade590816f7f9e.tar.gz zix-0634c9a6ac22d520ea63beab44ade590816f7f9e.tar.bz2 zix-0634c9a6ac22d520ea63beab44ade590816f7f9e.zip |
Suppress/fix new warnings in clang-tidy 15
Diffstat (limited to 'test/test_ring.c')
-rw-r--r-- | test/test_ring.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/test/test_ring.c b/test/test_ring.c index c61b3a3..8f56902 100644 --- a/test/test_ring.c +++ b/test/test_ring.c @@ -49,16 +49,14 @@ reader(void* ZIX_UNUSED(arg)) { printf("Reader starting\n"); - int ref_msg[MSG_SIZE]; // Reference generated for comparison - int read_msg[MSG_SIZE]; // Read from ring - unsigned count = 0; - int start = gen_msg(ref_msg, 0); + int ref_msg[MSG_SIZE]; // Reference generated for comparison + int read_msg[MSG_SIZE]; // Read from ring + int start = gen_msg(ref_msg, 0); for (unsigned i = 0; i < n_writes; ++i) { if (zix_ring_read_space(ring) >= MSG_SIZE * sizeof(int)) { if (zix_ring_read(ring, read_msg, MSG_SIZE * sizeof(int))) { assert(cmp_msg(ref_msg, read_msg)); start = gen_msg(ref_msg, start); - ++count; } } } |