From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 6C7F0386C587; Fri, 28 Oct 2022 17:39:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6C7F0386C587 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666978778; bh=gX0rKcprDCKYwWf3171nT7A1RxHxLEgzYHgVQhnc6Sw=; h=From:To:Subject:Date:From; b=rHMecOFmdhAqo62ExPggNublSQicVljCdUCAwWhZzYjqZv1iImoNhk6IIMqV0r2qb lRu2+UieBXh9dXE5WXCQcvR+6WItsXomYes/ENOI9Or8UfGC0Ot6r7GXzJC0cSA/e0 Bx8w3+A14evZEZQflTqHY+VJzdkMm+69sLJRDjpE= 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: fb05ebde058816e3476f346a5bef9ae987dd5661 X-Git-Newrev: ac8b5ea3fbb12767df5136020cb700c5c3720e89 Message-Id: <20221028173938.6C7F0386C587@sourceware.org> Date: Fri, 28 Oct 2022 17:39:38 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=ac8b5ea3fbb12767df5136020cb700c5c3720e89 commit ac8b5ea3fbb12767df5136020cb700c5c3720e89 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 6e3c264462..f8dba0e4b5 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)