From ced30ed4b498c34b9aaf69bdcae12f3cedb43af8 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 18 Oct 2019 17:00:48 +0200 Subject: Fix unused parameter warnings --- test/ring_test.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/ring_test.c') 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", -- cgit v1.2.1