From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 7C0B23857371; Fri, 28 Oct 2022 17:38:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7C0B23857371 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666978740; bh=rH/Og1h55xTzA0SbUy0KWr8A7SIjqJHOjQQNxeLdkhA=; h=From:To:Subject:Date:From; b=XgUAAL0By5f9Ws6k0VUTVPg271SVD0m2n+g3dp4GPPVc+UGKTagyOtnOU3DQGq1kp EM2+/ORvcX7nVh4E4qpp2Xcwd56WIQfsZSFunRHXEZ7R6ER4kMfOh0KH8D797+uH1g o/8jYAp2NoRacxDhgoisimFxPpMXmTDnOa1Bo5GE= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Adhemerval Zanella To: glibc-cvs@sourceware.org Subject: [glibc/azanella/clang] nptl: Fix Wincompatible-pointer-types on clang X-Act-Checkin: glibc X-Git-Author: Adhemerval Zanella X-Git-Refname: refs/heads/azanella/clang X-Git-Oldrev: 9ce4c0384faab27f8a7f24a15c6a6b2a8ca0ebb5 X-Git-Newrev: 2373d72259a062d550947bb86f146c601141f190 Message-Id: <20221028173900.7C0B23857371@sourceware.org> Date: Fri, 28 Oct 2022 17:38:52 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=2373d72259a062d550947bb86f146c601141f190 commit 2373d72259a062d550947bb86f146c601141f190 Author: Adhemerval Zanella Date: Wed Mar 9 16:17:43 2022 -0300 nptl: Fix Wincompatible-pointer-types on clang Clang issues: error: incompatible pointer types passing 'struct pthread **' to parameter of type 'void **' [-Werror,-Wincompatible-pointer-types] Diff: --- nptl/pthread_join_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nptl/pthread_join_common.c b/nptl/pthread_join_common.c index ca3245b0af..a4a528c40b 100644 --- a/nptl/pthread_join_common.c +++ b/nptl/pthread_join_common.c @@ -29,7 +29,7 @@ cleanup (void *arg) fail for any reason but the thread not having done that yet so there is no reason for a loop. */ struct pthread *self = THREAD_SELF; - atomic_compare_exchange_weak_acquire (&arg, &self, NULL); + atomic_compare_exchange_weak_acquire (&arg, (void **) &self, NULL); } int