--- a/tests/barrier5.c
+++ b/tests/barrier5.c
@@ -103,7 +103,7 @@
       serialThreadsTotal = 0;
       for (i = 1; i <= j; i++)
         {
-          assert(pthread_join(t[i], (void *) &result) == 0);
+          assert(pthread_join(t[i], &result) == 0);
           serialThreadsTotal += (int)(size_t)result;
         }