From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id A0CDF3858D3C; Wed, 17 Apr 2024 20:04:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A0CDF3858D3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1713384292; bh=Qd+MzlTDkZ0mHJ9901beMQCHSSvlRDz89QHG9WCF0+o=; h=From:To:Subject:Date:From; b=kKK1HLq95569x1T9pVDT+28EOsSKKy8tqFbkb2RxXHFlS9qpWl4oarqpkHmvEsadC avF7ll8kGkCkjcyyzq+xgsXMoUUZuYETM2jb/6Pg8nwJAjf5Rb3ACZ3c2K5VJwqKVJ QjMDDBHTJ2vv7ikbKVUZROa3/3c7+LfnqlhHvL5g= 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: db3ab211d186c521bffa3c3710ee4f8144e8adbe X-Git-Newrev: fe8a949c64da3f4315692e3c07ddf9b495f51547 Message-Id: <20240417200452.A0CDF3858D3C@sourceware.org> Date: Wed, 17 Apr 2024 20:04:52 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=fe8a949c64da3f4315692e3c07ddf9b495f51547 commit fe8a949c64da3f4315692e3c07ddf9b495f51547 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