From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 02EDC385782B; Thu, 9 Feb 2023 19:46:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 02EDC385782B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1675971967; bh=KPaHmf3us+ZrOOW1XKSg0T0yMD+FV8XouYe2Ki+0eRo=; h=From:To:Subject:Date:From; b=ioTcgKeVd/vf3fOLOGlMiKtQd5Ek/XFVYkHuxUAm3FMO/22wwlQs2pouZ1c4gEY94 BIxWCoBTiz2fS3pwRZKmJueOE8ZvoAVI0LJ5elOHrR0quADGgirr0F3hAqGWEGZ3N4 KeECH/B6JNHbqsJV/Oakf03vBUe4HrVYWpccgiY8= 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: 3e48ed5489b234b85e1e33a336b5058aaa82d527 X-Git-Newrev: eef3711c3fda687641f4d3dc2fe7fc559c0f3ca9 Message-Id: <20230209194607.02EDC385782B@sourceware.org> Date: Thu, 9 Feb 2023 19:46:07 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=eef3711c3fda687641f4d3dc2fe7fc559c0f3ca9 commit eef3711c3fda687641f4d3dc2fe7fc559c0f3ca9 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