tests: Use UNUSED macros in torture_threads_init
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Этот коммит содержится в:
родитель
c0ae59e102
Коммит
a08a97f9c7
@ -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);
|
||||
}
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user