From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 1A5213858D32; Mon, 29 Jan 2024 17:54:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1A5213858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1706550880; bh=51w8JjosoAs3iPcyoeDzoTV8o9uP9TdRsw3xZQ1SYbY=; h=From:To:Subject:Date:From; b=jHCyLQJ122Bs0J2DtbyFHsAQ+l7hB9EPBcdE+Swfa7ew87SrzF4iDfHkc4MwPNO9J lGUzTCcZxguFq7MN6IGUwW6McYz2qSh83hF+EQ8Pj7Bxyqi+UBM/z4NTBeC3zkqbxp Mzl0l95yzU+e2AobQSJoBILOFkd4y2XK+1hqaeDg= 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: 185d3d58447bc3bd5a9ae4753830c1296c3ea677 X-Git-Newrev: 02a321a267336bf5df895df808a9f36e0c44b5f9 Message-Id: <20240129175440.1A5213858D32@sourceware.org> Date: Mon, 29 Jan 2024 17:54:39 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=02a321a267336bf5df895df808a9f36e0c44b5f9 commit 02a321a267336bf5df895df808a9f36e0c44b5f9 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