Signed-off-by: Antonin Décimo <anto...@tarides.com>
---
 mingw-w64-libraries/winpthreads/tests/t_clock_getres.c    | 2 +-
 mingw-w64-libraries/winpthreads/tests/t_clock_gettime.c   | 3 ++-
 mingw-w64-libraries/winpthreads/tests/t_clock_nanosleep.c | 2 +-
 mingw-w64-libraries/winpthreads/tests/t_clock_settime.c   | 4 ++--
 mingw-w64-libraries/winpthreads/tests/t_nanosleep.c       | 3 ++-
 5 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/mingw-w64-libraries/winpthreads/tests/t_clock_getres.c 
b/mingw-w64-libraries/winpthreads/tests/t_clock_getres.c
index f25be5aa3..4b111161f 100644
--- a/mingw-w64-libraries/winpthreads/tests/t_clock_getres.c
+++ b/mingw-w64-libraries/winpthreads/tests/t_clock_getres.c
@@ -45,7 +45,7 @@ static void test_clock_getres(char *name, int id)
     printf("\n");
 }
 
-int main(int argc, char *argv[])
+int main(void)
 {
     test_clock_getres("          CLOCK_REALTIME", CLOCK_REALTIME);
     test_clock_getres("         CLOCK_MONOTONIC", CLOCK_MONOTONIC);
diff --git a/mingw-w64-libraries/winpthreads/tests/t_clock_gettime.c 
b/mingw-w64-libraries/winpthreads/tests/t_clock_gettime.c
index a14899437..89145138f 100644
--- a/mingw-w64-libraries/winpthreads/tests/t_clock_gettime.c
+++ b/mingw-w64-libraries/winpthreads/tests/t_clock_gettime.c
@@ -46,7 +46,8 @@ static void test_clock_gettime(void)
     printf("[%10"PRId64".%09d] clock_gettime (CLOCK_THREAD_CPUTIME_ID)\n", 
(__int64) tp.tv_sec, (int) tp.tv_nsec);
 
 }
-int main(int argc, char *argv[])
+
+int main(void)
 {
     test_clock_gettime();
 
diff --git a/mingw-w64-libraries/winpthreads/tests/t_clock_nanosleep.c 
b/mingw-w64-libraries/winpthreads/tests/t_clock_nanosleep.c
index c89647f96..b329ad6cf 100644
--- a/mingw-w64-libraries/winpthreads/tests/t_clock_nanosleep.c
+++ b/mingw-w64-libraries/winpthreads/tests/t_clock_nanosleep.c
@@ -42,7 +42,7 @@ static void test_clock_nanosleep(void)
     printf("[%10"PRId64".%09d] clock_gettime (CLOCK_REALTIME)\n", (__int64) 
tp.tv_sec, (int) tp.tv_nsec);
 }
 
-int main(int argc, char *argv[])
+int main(void)
 {
     test_clock_nanosleep();
 
diff --git a/mingw-w64-libraries/winpthreads/tests/t_clock_settime.c 
b/mingw-w64-libraries/winpthreads/tests/t_clock_settime.c
index e3d18db2e..9a31c2780 100644
--- a/mingw-w64-libraries/winpthreads/tests/t_clock_settime.c
+++ b/mingw-w64-libraries/winpthreads/tests/t_clock_settime.c
@@ -9,7 +9,7 @@
 static void test_clock_settime(void)
 {
     int rc;
-    struct timespec tp, request = { 1, 0 }, remain;
+    struct timespec tp;
 
     rc = clock_gettime(CLOCK_REALTIME, &tp);
     assert(rc == 0);
@@ -32,7 +32,7 @@ static void test_clock_settime(void)
     printf("[%10"PRId64".%09d] clock_gettime (CLOCK_REALTIME)\n", (__int64) 
tp.tv_sec, (int) tp.tv_nsec);
 }
 
-int main(int argc, char *argv[])
+int main(void)
 {
     test_clock_settime();
 
diff --git a/mingw-w64-libraries/winpthreads/tests/t_nanosleep.c 
b/mingw-w64-libraries/winpthreads/tests/t_nanosleep.c
index 1d5897426..4400d1037 100644
--- a/mingw-w64-libraries/winpthreads/tests/t_nanosleep.c
+++ b/mingw-w64-libraries/winpthreads/tests/t_nanosleep.c
@@ -20,6 +20,7 @@ static unsigned __stdcall start_address(void *dummy)
 {
     int counter = 0;
     struct timespec request = { 1, 0 }, remain;
+    (void)dummy;
 
     while (counter < 5) {
         int rc = nanosleep(&request, &remain);
@@ -69,7 +70,7 @@ static void test_apc(void)
     }
 }
 
-int main(int argc, char *argv[])
+int main(void)
 {
     int rc;
     struct timespec tp, tp2, request = { 1, 0 }, remain;
-- 
2.43.0



_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to