From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 0A56E3858C52; Tue, 4 Oct 2022 12:56:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0A56E3858C52 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1664888209; bh=PJL66NmP/jJRkassp8pM0IQudiSiLmGxByE7QkUtuOc=; h=From:To:Subject:Date:From; b=mCvyh3k/0V/vH0pwiUTB1EOUVBTOM/mzEE702tiYKvClvZo5EvmZ1gF8R0OgcI136 bQENlPQ96NlpfqsCPwWOEKov82mBiTZQPjN9A+ZlFwTj6e/g1fMtGg3DMqENdIZ0vo fg8oD2IZC60E0PG9qCDuLZSaFX6ihwiqlFAL9iSw= 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: 4f4e3d317147c53a43785080c716a7f97c9a630f X-Git-Newrev: 8c86e3f6286d47874b10e3ec87caf982082def13 Message-Id: <20221004125649.0A56E3858C52@sourceware.org> Date: Tue, 4 Oct 2022 12:56:49 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=8c86e3f6286d47874b10e3ec87caf982082def13 commit 8c86e3f6286d47874b10e3ec87caf982082def13 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