From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 080183853D3F; Wed, 30 Aug 2023 12:34:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 080183853D3F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1693398882; bh=PuDeWDyv5bORuvZuMgaQ/2oGeQOvSM3fLwYuCybtpXY=; h=From:To:Subject:Date:From; b=USBrhMN9R6Ttt1Wa6Ok4Kqe8Arc2Lf8Woj9vp4Nne1MJD0kmKatZ4gq4xGhCgBi+s ho5Va/+Kp4RCRpoFkTtcRfoiQyYx+YsaSUCeIjp4OZLq4PRdcSDffeKZk5LWlS0yz5 7Ja1+IEBaBDEGRvEBHq9h4/dZvXiJ5If6hLPi7lM= 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] posix: Suppress clang confstr -Wignored-attributes X-Act-Checkin: glibc X-Git-Author: Adhemerval Zanella X-Git-Refname: refs/heads/azanella/clang X-Git-Oldrev: af9eb0d987147ab8272cb2fd8cbd18009f84675e X-Git-Newrev: 533b4206f5a60bc33547e8bd61acc7f64e8dc7c7 Message-Id: <20230830123442.080183853D3F@sourceware.org> Date: Wed, 30 Aug 2023 12:34:42 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=533b4206f5a60bc33547e8bd61acc7f64e8dc7c7 commit 533b4206f5a60bc33547e8bd61acc7f64e8dc7c7 Author: Adhemerval Zanella Date: Wed Aug 24 12:13:27 2022 -0300 posix: Suppress clang confstr -Wignored-attributes Diff: --- posix/confstr.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/posix/confstr.c b/posix/confstr.c index 0f6e8d1ca4..edb55701d9 100644 --- a/posix/confstr.c +++ b/posix/confstr.c @@ -290,5 +290,10 @@ __confstr (int name, char *buf, size_t len) return string_len; } libc_hidden_def (__confstr) +/* clang warns that alias will be always resolve to _GI___confstr even if weak + definition of __GI_confstr is overridden, which is really the intention. */ +DIAG_PUSH_NEEDS_COMMENT_CLANG; +DIAG_IGNORE_NEEDS_COMMENT_CLANG (13, "-Wignored-attributes"); libc_hidden_def (confstr) +DIAG_POP_NEEDS_COMMENT_CLANG; weak_alias (__confstr, confstr)