This fixes the following warning (that is treated as an error
in CI):

    ../../tests/pthread_barrier/barrier4.c:50:12: warning: variable 
'otherThreadCount' set but not used [-Wunused-but-set-global]
       50 | static int otherThreadCount = 0;
          |            ^

Signed-off-by: Martin Storsjö <[email protected]>
---
 .../winpthreads/tests/pthread_barrier/barrier4.c                | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/mingw-w64-libraries/winpthreads/tests/pthread_barrier/barrier4.c 
b/mingw-w64-libraries/winpthreads/tests/pthread_barrier/barrier4.c
index 042992dfd..90989412f 100644
--- a/mingw-w64-libraries/winpthreads/tests/pthread_barrier/barrier4.c
+++ b/mingw-w64-libraries/winpthreads/tests/pthread_barrier/barrier4.c
@@ -104,6 +104,8 @@ main()
       assert(pthread_barrier_destroy(&barrier) == 0);
     }
 
+  (void) otherThreadCount;
+
   assert(pthread_mutex_destroy(&mx) == 0);
 
   return 0;
-- 
2.43.0



_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to