From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 31DF13858299; Wed, 7 Feb 2024 14:04:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 31DF13858299 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1707314670; bh=XZfpqGqqKgIjEU6yVFgm6GYUVfU75NYZeDRxEUe6xao=; h=From:To:Subject:Date:From; b=dYrYkQMW/XxdgYMY7L8Ny9z5D+ChwY0SU1KbLUuO2XyxRlj2z8VC0zQR38+2xZ8+X N9l2dLZDiLm9rLpuAQKGPEGbM4NPN9wMqYfdIlumIrqQH6VF75RaKcSx/gBcAvbxNR HhUfKmvFz/d18kGdHbv+OkjTRoI0sMzPgNhmzA0c= 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: 9902cd3731adfb95ed578716f0b7317525883de6 X-Git-Newrev: 7829bb7fb63279193497a634673cee4a3b610c28 Message-Id: <20240207140430.31DF13858299@sourceware.org> Date: Wed, 7 Feb 2024 14:04:30 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=7829bb7fb63279193497a634673cee4a3b610c28 commit 7829bb7fb63279193497a634673cee4a3b610c28 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