From: Ivan Maidanski Date: Fri, 19 Oct 2012 04:11:43 +0000 (+0400) Subject: Specify GC_pthread_join result is unused in threadkey_test X-Git-Tag: gc7_4_0~190 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8445475ead3ed546b5ebabf00ce71d1b4fbef8db;p=gc Specify GC_pthread_join result is unused in threadkey_test * tests/threadkey_test.c (main): Explicitly cast result of GC_pthread_join to void (to outline that the result is unused intentionally). --- diff --git a/tests/threadkey_test.c b/tests/threadkey_test.c index 92b793fc..f87530e3 100644 --- a/tests/threadkey_test.c +++ b/tests/threadkey_test.c @@ -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; }