From: Jeff Law Date: Tue, 27 Jul 2021 18:14:05 +0000 (-0400) Subject: Fix argument to pthread_join X-Git-Tag: basepoints/gcc-13~5774 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0853f392a213ef2cecc71ef5349aab079e30f5a0;p=thirdparty%2Fgcc.git Fix argument to pthread_join gcc/testsuite * g++.dg/gcov/gcov-threads-1.C: Fix argument to pthread_join. --- diff --git a/gcc/testsuite/g++.dg/gcov/gcov-threads-1.C b/gcc/testsuite/g++.dg/gcov/gcov-threads-1.C index b020dd87d4ca..3ae00789439b 100644 --- a/gcc/testsuite/g++.dg/gcov/gcov-threads-1.C +++ b/gcc/testsuite/g++.dg/gcov/gcov-threads-1.C @@ -36,7 +36,7 @@ int main(int argc, char **argv) { assert (r == 0); /* count(5*) */ } - int ret; + void *ret; for (int i = 0; i < NR; i++) { int r = pthread_join (t[i], (void**)&ret);