diff options
author | David Robillard <d@drobilla.net> | 2019-10-18 17:00:48 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-10-18 17:07:56 +0200 |
commit | ced30ed4b498c34b9aaf69bdcae12f3cedb43af8 (patch) | |
tree | 23e3f002821bd360018bc08ad8a879eb548640d0 /test/ring_test.c | |
parent | e36a086818936d921d7303e45d6180a948ef3196 (diff) | |
download | zix-ced30ed4b498c34b9aaf69bdcae12f3cedb43af8.tar.gz zix-ced30ed4b498c34b9aaf69bdcae12f3cedb43af8.tar.bz2 zix-ced30ed4b498c34b9aaf69bdcae12f3cedb43af8.zip |
Fix unused parameter warnings
Diffstat (limited to 'test/ring_test.c')
-rw-r--r-- | test/ring_test.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/ring_test.c b/test/ring_test.c index cabf6d3..9e11690 100644 --- a/test/ring_test.c +++ b/test/ring_test.c @@ -63,7 +63,7 @@ cmp_msg(int* msg1, int* msg2) } static void* -reader(void* arg) +reader(ZIX_UNUSED void* arg) { printf("Reader starting\n"); @@ -90,7 +90,7 @@ reader(void* arg) } static void* -writer(void* arg) +writer(ZIX_UNUSED void* arg) { printf("Writer starting\n"); @@ -118,12 +118,12 @@ main(int argc, char** argv) unsigned size = 1024; if (argc > 1) { - size = atoi(argv[1]); + size = (unsigned)atoi(argv[1]); } n_writes = size * 1024; if (argc > 2) { - n_writes = atoi(argv[2]); + n_writes = (unsigned)atoi(argv[2]); } printf("Testing %u writes of %d ints to a %d int ring...\n", |