From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id D253C3858C27; Fri, 11 Mar 2022 17:22:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D253C3858C27 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: 92a86e2ed63559881e909c40de1f06a2ca772e03 X-Git-Newrev: f93cefce2f4eccf27a561fc44ecb11459f61cfa7 Message-Id: <20220311172205.D253C3858C27@sourceware.org> Date: Fri, 11 Mar 2022 17:22:05 +0000 (GMT) X-BeenThere: glibc-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Mar 2022 17:22:05 -0000 https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=f93cefce2f4eccf27a561fc44ecb11459f61cfa7 commit f93cefce2f4eccf27a561fc44ecb11459f61cfa7 Author: Adhemerval Zanella Date: Wed Mar 9 16:17:43 2022 -0300 nptl: Fix Wincompatible-pointer-types on clang 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 a8e884f341..e6bc4b73fc 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