From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id E52833858427; Fri, 9 Feb 2024 17:29:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E52833858427 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1707499747; bh=56CbQNu1tMQshRKM9aNxf7gGcG1JOujntcxaD3+jMGQ=; h=From:To:Subject:Date:From; b=HNGIpID1vraPpG8fvtAsBkkeYBgv6vDYvil35qcZdSKdFRcTu2f2ilIEpdhYkGyj+ bykKsrJgmNjwlp1BNZKChizS5veEhwklCjXk4EVFsVd1c26PTkgPacdEUQdAzYMQSD DOm9rJnb6+EXUdwriBF7SeQLOqQ+YjNMEIcUEkDM= 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: 8e7620423a74eb84385872313f3e1a361812e1aa X-Git-Newrev: 9eefbaccf079c3ed7381071205c867cdcc385f79 Message-Id: <20240209172907.E52833858427@sourceware.org> Date: Fri, 9 Feb 2024 17:29:07 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=9eefbaccf079c3ed7381071205c867cdcc385f79 commit 9eefbaccf079c3ed7381071205c867cdcc385f79 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 9c685c79cf..ff783343f6 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