From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 8BE93385559A; Wed, 30 Aug 2023 12:34:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8BE93385559A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1693398851; bh=9JI/2kPAVWvaozhFBtKx6iuazg7vzKv4j23LJr6gQo4=; h=From:To:Subject:Date:From; b=Svoe0lBd436TnPMnywthTq4ADGzGMic+p6K+kae0X7nttPfDJh8PEhB/mf3xngIKA vfMGNaNtmLsCZjfT6vEsv0j2gxmkt6O0o4dk2e+C7y4RDYISQrc4VV0N7fGih7EsuH 1jXEsT7hJksKzZsIg3GsMP/+tXq1hi2scnBODNsA= 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: 6c96319781c9d6815197167e5afcfac661788f97 X-Git-Newrev: 92cf68bab4a8ebe8a0fe91dcf1261a7c3d80a52f Message-Id: <20230830123411.8BE93385559A@sourceware.org> Date: Wed, 30 Aug 2023 12:34:11 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=92cf68bab4a8ebe8a0fe91dcf1261a7c3d80a52f commit 92cf68bab4a8ebe8a0fe91dcf1261a7c3d80a52f 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 701f6a53c0..0d08c4cb40 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