]> granicus.if.org Git - gc/commitdiff
Specify GC_pthread_join result is unused in threadkey_test
authorIvan Maidanski <ivmai@mail.ru>
Fri, 19 Oct 2012 04:11:43 +0000 (08:11 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 19 Oct 2012 12:13:16 +0000 (16:13 +0400)
* tests/threadkey_test.c (main): Explicitly cast result of
GC_pthread_join to void (to outline that the result is unused
intentionally).

tests/threadkey_test.c

index 92b793fc88cae42656e64453e565222c4cbec2aa..f87530e3323573782b9b5315795393a4b721e66c 100644 (file)
@@ -90,8 +90,9 @@ int main (void)
     pthread_t t;
     void *res;
     if (GC_pthread_create (&t, NULL, entry, NULL) == 0
-        && (i & 1) != 0)
-      GC_pthread_join (t, &res);
+        && (i & 1) != 0) {
+      (void)GC_pthread_join(t, &res);
+    }
   }
   return 0;
 }