public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/azanella/clang] string: Suppress clang confstr -Wignored-attributes on strlen
@ 2024-04-17 20:08 Adhemerval Zanella
  0 siblings, 0 replies; 7+ messages in thread
From: Adhemerval Zanella @ 2024-04-17 20:08 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=f72cdbda8b5d3500c59e13bf1badc3e34a8cf192

commit f72cdbda8b5d3500c59e13bf1badc3e34a8cf192
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Sep 28 14:18:54 2023 -0300

    string: Suppress clang confstr -Wignored-attributes on strlen
    
    clang warns that the alias will be always resolve to __strlen
    even if weak definition of __GI_strlen is overridden, which is
    really the intention.

Diff:
---
 string/strlen.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/string/strlen.c b/string/strlen.c
index a0378c500e..a89bacff56 100644
--- a/string/strlen.c
+++ b/string/strlen.c
@@ -48,5 +48,10 @@ __strlen (const char *str)
 }
 #ifndef STRLEN
 weak_alias (__strlen, strlen)
+/* clang warns that the alias will be always resolve to __strlen even if weak
+   definition of __GI_strlen is overridden, which is really the intention.  */
+DIAG_PUSH_NEEDS_COMMENT_CLANG;
+DIAG_IGNORE_NEEDS_COMMENT_CLANG (16, "-Wignored-attributes");
 libc_hidden_builtin_def (strlen)
+DIAG_POP_NEEDS_COMMENT_CLANG;
 #endif

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [glibc/azanella/clang] string: Suppress clang confstr -Wignored-attributes on strlen
@ 2024-04-02 15:54 Adhemerval Zanella
  0 siblings, 0 replies; 7+ messages in thread
From: Adhemerval Zanella @ 2024-04-02 15:54 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=a900809d5997eb9e807db3800b1891580815a8c6

commit a900809d5997eb9e807db3800b1891580815a8c6
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Sep 28 14:18:54 2023 -0300

    string: Suppress clang confstr -Wignored-attributes on strlen
    
    clang warns that the alias will be always resolve to __strlen
    even if weak definition of __GI_strlen is overridden, which is
    really the intention.

Diff:
---
 string/strlen.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/string/strlen.c b/string/strlen.c
index a0378c500e..a89bacff56 100644
--- a/string/strlen.c
+++ b/string/strlen.c
@@ -48,5 +48,10 @@ __strlen (const char *str)
 }
 #ifndef STRLEN
 weak_alias (__strlen, strlen)
+/* clang warns that the alias will be always resolve to __strlen even if weak
+   definition of __GI_strlen is overridden, which is really the intention.  */
+DIAG_PUSH_NEEDS_COMMENT_CLANG;
+DIAG_IGNORE_NEEDS_COMMENT_CLANG (16, "-Wignored-attributes");
 libc_hidden_builtin_def (strlen)
+DIAG_POP_NEEDS_COMMENT_CLANG;
 #endif

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [glibc/azanella/clang] string: Suppress clang confstr -Wignored-attributes on strlen
@ 2024-02-09 17:32 Adhemerval Zanella
  0 siblings, 0 replies; 7+ messages in thread
From: Adhemerval Zanella @ 2024-02-09 17:32 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=fffb8e740b88c03c137ea8702ec3214644e7c9cd

commit fffb8e740b88c03c137ea8702ec3214644e7c9cd
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Sep 28 14:18:54 2023 -0300

    string: Suppress clang confstr -Wignored-attributes on strlen
    
    clang warns that the alias will be always resolve to __strlen
    even if weak definition of __GI_strlen is overridden, which is
    really the intention.

Diff:
---
 string/strlen.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/string/strlen.c b/string/strlen.c
index a0378c500e..a89bacff56 100644
--- a/string/strlen.c
+++ b/string/strlen.c
@@ -48,5 +48,10 @@ __strlen (const char *str)
 }
 #ifndef STRLEN
 weak_alias (__strlen, strlen)
+/* clang warns that the alias will be always resolve to __strlen even if weak
+   definition of __GI_strlen is overridden, which is really the intention.  */
+DIAG_PUSH_NEEDS_COMMENT_CLANG;
+DIAG_IGNORE_NEEDS_COMMENT_CLANG (16, "-Wignored-attributes");
 libc_hidden_builtin_def (strlen)
+DIAG_POP_NEEDS_COMMENT_CLANG;
 #endif

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [glibc/azanella/clang] string: Suppress clang confstr -Wignored-attributes on strlen
@ 2024-02-07 14:08 Adhemerval Zanella
  0 siblings, 0 replies; 7+ messages in thread
From: Adhemerval Zanella @ 2024-02-07 14:08 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=4e5afb4a4ed1051a0460b3bb77f8f2e2fbd5e8f7

commit 4e5afb4a4ed1051a0460b3bb77f8f2e2fbd5e8f7
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Sep 28 14:18:54 2023 -0300

    string: Suppress clang confstr -Wignored-attributes on strlen
    
    clang warns that the alias will be always resolve to __strlen
    even if weak definition of __GI_strlen is overridden, which is
    really the intention.

Diff:
---
 string/strlen.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/string/strlen.c b/string/strlen.c
index a0378c500e..a89bacff56 100644
--- a/string/strlen.c
+++ b/string/strlen.c
@@ -48,5 +48,10 @@ __strlen (const char *str)
 }
 #ifndef STRLEN
 weak_alias (__strlen, strlen)
+/* clang warns that the alias will be always resolve to __strlen even if weak
+   definition of __GI_strlen is overridden, which is really the intention.  */
+DIAG_PUSH_NEEDS_COMMENT_CLANG;
+DIAG_IGNORE_NEEDS_COMMENT_CLANG (16, "-Wignored-attributes");
 libc_hidden_builtin_def (strlen)
+DIAG_POP_NEEDS_COMMENT_CLANG;
 #endif

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [glibc/azanella/clang] string: Suppress clang confstr -Wignored-attributes on strlen
@ 2024-01-29 17:58 Adhemerval Zanella
  0 siblings, 0 replies; 7+ messages in thread
From: Adhemerval Zanella @ 2024-01-29 17:58 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=f992095bfc4e5cbee031691be175e931f5f75a27

commit f992095bfc4e5cbee031691be175e931f5f75a27
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Sep 28 14:18:54 2023 -0300

    string: Suppress clang confstr -Wignored-attributes on strlen
    
    clang warns that the alias will be always resolve to __strlen
    even if weak definition of __GI_strlen is overridden, which is
    really the intention.

Diff:
---
 string/strlen.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/string/strlen.c b/string/strlen.c
index a0378c500e..a89bacff56 100644
--- a/string/strlen.c
+++ b/string/strlen.c
@@ -48,5 +48,10 @@ __strlen (const char *str)
 }
 #ifndef STRLEN
 weak_alias (__strlen, strlen)
+/* clang warns that the alias will be always resolve to __strlen even if weak
+   definition of __GI_strlen is overridden, which is really the intention.  */
+DIAG_PUSH_NEEDS_COMMENT_CLANG;
+DIAG_IGNORE_NEEDS_COMMENT_CLANG (16, "-Wignored-attributes");
 libc_hidden_builtin_def (strlen)
+DIAG_POP_NEEDS_COMMENT_CLANG;
 #endif

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [glibc/azanella/clang] string: Suppress clang confstr -Wignored-attributes on strlen
@ 2023-12-21 18:54 Adhemerval Zanella
  0 siblings, 0 replies; 7+ messages in thread
From: Adhemerval Zanella @ 2023-12-21 18:54 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=88bc60cf2c72ca51b1a11a487a94b24dd086e1e8

commit 88bc60cf2c72ca51b1a11a487a94b24dd086e1e8
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Sep 28 14:18:54 2023 -0300

    string: Suppress clang confstr -Wignored-attributes on strlen
    
    clang warns that the alias will be always resolve to __strlen
    even if weak definition of __GI_strlen is overridden, which is
    really the intention.

Diff:
---
 string/strlen.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/string/strlen.c b/string/strlen.c
index 5a4424f9a5..b648ee2aa3 100644
--- a/string/strlen.c
+++ b/string/strlen.c
@@ -48,5 +48,10 @@ __strlen (const char *str)
 }
 #ifndef STRLEN
 weak_alias (__strlen, strlen)
+/* clang warns that the alias will be always resolve to __strlen even if weak
+   definition of __GI_strlen is overridden, which is really the intention.  */
+DIAG_PUSH_NEEDS_COMMENT_CLANG;
+DIAG_IGNORE_NEEDS_COMMENT_CLANG (16, "-Wignored-attributes");
 libc_hidden_builtin_def (strlen)
+DIAG_POP_NEEDS_COMMENT_CLANG;
 #endif

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [glibc/azanella/clang] string: Suppress clang confstr -Wignored-attributes on strlen
@ 2023-09-28 17:53 Adhemerval Zanella
  0 siblings, 0 replies; 7+ messages in thread
From: Adhemerval Zanella @ 2023-09-28 17:53 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=54f65559b0353701da52c12bfaf69a037175fb81

commit 54f65559b0353701da52c12bfaf69a037175fb81
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Sep 28 14:18:54 2023 -0300

    string: Suppress clang confstr -Wignored-attributes on strlen
    
    clang warns that the alias will be always resolve to __strlen
    even if weak definition of __GI_strlen is overridden, which is
    really the intention.

Diff:
---
 string/strlen.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/string/strlen.c b/string/strlen.c
index 5a4424f9a5..b648ee2aa3 100644
--- a/string/strlen.c
+++ b/string/strlen.c
@@ -48,5 +48,10 @@ __strlen (const char *str)
 }
 #ifndef STRLEN
 weak_alias (__strlen, strlen)
+/* clang warns that the alias will be always resolve to __strlen even if weak
+   definition of __GI_strlen is overridden, which is really the intention.  */
+DIAG_PUSH_NEEDS_COMMENT_CLANG;
+DIAG_IGNORE_NEEDS_COMMENT_CLANG (16, "-Wignored-attributes");
 libc_hidden_builtin_def (strlen)
+DIAG_POP_NEEDS_COMMENT_CLANG;
 #endif

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-04-17 20:08 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-17 20:08 [glibc/azanella/clang] string: Suppress clang confstr -Wignored-attributes on strlen Adhemerval Zanella
  -- strict thread matches above, loose matches on Subject: below --
2024-04-02 15:54 Adhemerval Zanella
2024-02-09 17:32 Adhemerval Zanella
2024-02-07 14:08 Adhemerval Zanella
2024-01-29 17:58 Adhemerval Zanella
2023-12-21 18:54 Adhemerval Zanella
2023-09-28 17:53 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).