From a08a97f9c7800fa64375797c5415a77a7b1cd0e8 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Fri, 30 Nov 2018 17:49:41 +0100 Subject: [PATCH] tests: Use UNUSED macros in torture_threads_init Signed-off-by: Andreas Schneider --- tests/unittests/torture_threads_init.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/unittests/torture_threads_init.c b/tests/unittests/torture_threads_init.c index 8eada0d3..e49bde10 100644 --- a/tests/unittests/torture_threads_init.c +++ b/tests/unittests/torture_threads_init.c @@ -55,7 +55,7 @@ static int run_on_threads(void *(*func)(void *)) return rc; } -static void *thread_ssh_init(void *threadid) +static void *thread_ssh_init(UNUSED_PARAM(void *threadid)) { int rc; @@ -70,13 +70,10 @@ static void *thread_ssh_init(void *threadid) pthread_exit(NULL); } -static void torture_ssh_init(void **state) +static void torture_ssh_init(UNUSED_PARAM(void **state)) { int rc; - /* Unused */ - (void) state; - rc = run_on_threads(thread_ssh_init); assert_int_equal(rc, 0); }