Signed-off-by: Antonin Décimo <anto...@tarides.com> --- .../winpthreads/tests/t_clock_gettime.c | 2 +- .../winpthreads/tests/t_clock_nanosleep.c | 2 +- .../winpthreads/tests/t_clock_settime.c | 2 +- .../winpthreads/tests/t_nanosleep.c | 2 +- mingw-w64-libraries/winpthreads/tests/test.c | 16 ++++++++-------- 5 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/mingw-w64-libraries/winpthreads/tests/t_clock_gettime.c b/mingw-w64-libraries/winpthreads/tests/t_clock_gettime.c index 45efc0ffe..a14899437 100644 --- a/mingw-w64-libraries/winpthreads/tests/t_clock_gettime.c +++ b/mingw-w64-libraries/winpthreads/tests/t_clock_gettime.c @@ -5,7 +5,7 @@ #include <assert.h> #include <pthread.h> -static void test_clock_gettime() +static void test_clock_gettime(void) { int rc; struct timespec tp, request = { 1, 0 }, remain; diff --git a/mingw-w64-libraries/winpthreads/tests/t_clock_nanosleep.c b/mingw-w64-libraries/winpthreads/tests/t_clock_nanosleep.c index 986d06b0d..c89647f96 100644 --- a/mingw-w64-libraries/winpthreads/tests/t_clock_nanosleep.c +++ b/mingw-w64-libraries/winpthreads/tests/t_clock_nanosleep.c @@ -6,7 +6,7 @@ #include <assert.h> #include <pthread.h> -static void test_clock_nanosleep() +static void test_clock_nanosleep(void) { int rc; struct timespec tp, request = { 1, 0 }, remain; diff --git a/mingw-w64-libraries/winpthreads/tests/t_clock_settime.c b/mingw-w64-libraries/winpthreads/tests/t_clock_settime.c index 8a8f2ea3a..e3d18db2e 100644 --- a/mingw-w64-libraries/winpthreads/tests/t_clock_settime.c +++ b/mingw-w64-libraries/winpthreads/tests/t_clock_settime.c @@ -6,7 +6,7 @@ #include <assert.h> #include <pthread.h> -static void test_clock_settime() +static void test_clock_settime(void) { int rc; struct timespec tp, request = { 1, 0 }, remain; diff --git a/mingw-w64-libraries/winpthreads/tests/t_nanosleep.c b/mingw-w64-libraries/winpthreads/tests/t_nanosleep.c index 6606cedea..1d5897426 100644 --- a/mingw-w64-libraries/winpthreads/tests/t_nanosleep.c +++ b/mingw-w64-libraries/winpthreads/tests/t_nanosleep.c @@ -42,7 +42,7 @@ static void WINAPI usr_apc(ULONG_PTR dwParam) printf("running apc %ld\n", *index); } -static void test_apc() +static void test_apc(void) { long i, rc, data[5]; HANDLE thread; diff --git a/mingw-w64-libraries/winpthreads/tests/test.c b/mingw-w64-libraries/winpthreads/tests/test.c index dc1a0c6c0..f077cb6d3 100644 --- a/mingw-w64-libraries/winpthreads/tests/test.c +++ b/mingw-w64-libraries/winpthreads/tests/test.c @@ -691,20 +691,20 @@ static void *condTimed_threadfunc(void *parm) pthread_exit(NULL); } checkResults("pthread_cond_timedwait()\n", rc); - } while (!workLeave && !workToDo); + } while (!workLeave && !workToDo); if (workToDo) { printf("Thread %d consumes work here\n", tid); Sleep(2000); workToDo = 0; } - } + } printf("Thread %d leaves here\n", tid); rc = pthread_mutex_unlock(&mutex); checkResults("pthread_mutex_unlock() B\n", rc); return NULL; } -static int condTimed_main() +static int condTimed_main(void) { int rc=0; int i; @@ -839,20 +839,20 @@ static void *condTimed_threadfunc(void *parm) pthread_exit(NULL); } checkResults("pthread_cond_timedwait()\n", rc); - } while (!workLeave && !workToDo); + } while (!workLeave && !workToDo); if (workToDo) { printf("Thread %d consumes work here\n", tid); Sleep(2000); workToDo = 0; } - } + } printf("Thread %d leaves here\n", tid); rc = pthread_mutex_unlock(&mutex); checkResults("pthread_mutex_unlock() B\n", rc); return NULL; } -static int condTimed_main() +static int condTimed_main(void) { int rc=0; int i; @@ -941,13 +941,13 @@ static int condTimed_main() return 0; } -static int cond_main() +static int cond_main(void) { strcpy(testType, "notTimed"); return condTimed_main(); } -static int condStatic_main() +static int condStatic_main(void) { strcpy(testType, "static"); return condTimed_main(); -- 2.43.0 _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public