From 785577e2529855f25fb33c64a702df32f7819c21 Mon Sep 17 00:00:00 2001 From: Aaron Culliney Date: Wed, 16 Dec 2015 21:11:35 -0800 Subject: [PATCH] Fix some compiler warnings in testdisk.c --- src/test/testdisk.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/test/testdisk.c b/src/test/testdisk.c index 0b060316..b2ac7bbd 100644 --- a/src/test/testdisk.c +++ b/src/test/testdisk.c @@ -1436,12 +1436,16 @@ GREATEST_MAIN_DEFS(); static char **test_argv = NULL; static int test_argc = 0; -static void *test_thread(void *dummyptr) { +static int _test_thread(void) { int argc = test_argc; char **argv = test_argv; GREATEST_MAIN_BEGIN(); RUN_SUITE(test_suite_disk); GREATEST_MAIN_END(); +} + +static void *test_thread(void *dummyptr) { + _test_thread(); return NULL; }