public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/azanella/clang] posix: Suppress clang confstr -Wignored-attributes
@ 2022-10-04 12:57 Adhemerval Zanella
0 siblings, 0 replies; 3+ messages in thread
From: Adhemerval Zanella @ 2022-10-04 12:57 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=df89b7ded38f66848b6ac0a3d9d67f8fa6802701
commit df89b7ded38f66848b6ac0a3d9d67f8fa6802701
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
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)
^ permalink raw reply [flat|nested] 3+ messages in thread
* [glibc/azanella/clang] posix: Suppress clang confstr -Wignored-attributes
@ 2023-02-09 19:46 Adhemerval Zanella
0 siblings, 0 replies; 3+ messages in thread
From: Adhemerval Zanella @ 2023-02-09 19:46 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=da6efc964e19f9e55f64e6ee9ed74c62f422556a
commit da6efc964e19f9e55f64e6ee9ed74c62f422556a
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
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)
^ permalink raw reply [flat|nested] 3+ messages in thread
* [glibc/azanella/clang] posix: Suppress clang confstr -Wignored-attributes
@ 2022-10-28 17:39 Adhemerval Zanella
0 siblings, 0 replies; 3+ messages in thread
From: Adhemerval Zanella @ 2022-10-28 17:39 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=ac8b5ea3fbb12767df5136020cb700c5c3720e89
commit ac8b5ea3fbb12767df5136020cb700c5c3720e89
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
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)
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-02-09 19:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-04 12:57 [glibc/azanella/clang] posix: Suppress clang confstr -Wignored-attributes Adhemerval Zanella
2022-10-28 17:39 Adhemerval Zanella
2023-02-09 19:46 Adhemerval Zanella
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).