public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/azanella/clang] stdlib: DIAG_IGNORE_NEEDS_COMMENT setenv.c
@ 2022-10-04 12:55 Adhemerval Zanella
  0 siblings, 0 replies; 4+ messages in thread
From: Adhemerval Zanella @ 2022-10-04 12:55 UTC (permalink / raw)
  To: glibc-cvs

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

commit f3de9de2b43d5e0f69036eae77f8508962a48903
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Mar 8 17:37:11 2022 -0300

    stdlib: DIAG_IGNORE_NEEDS_COMMENT setenv.c
    
    Checked on x86_64-linux-gnu.

Diff:
---
 stdlib/setenv.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/stdlib/setenv.c b/stdlib/setenv.c
index 2176cbac31..2add8bfb41 100644
--- a/stdlib/setenv.c
+++ b/stdlib/setenv.c
@@ -19,12 +19,14 @@
 # include <config.h>
 #endif
 
+#if _LIBC
+# include <libc-diag.h>
 /* Pacify GCC; see the commentary about VALLEN below.  This is needed
    at least through GCC 4.9.2.  Pacify GCC for the entire file, as
    there seems to be no way to pacify GCC selectively, only for the
-   place where it's needed.  Do not use DIAG_IGNORE_NEEDS_COMMENT
-   here, as it's not defined yet.  */
-#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
+   place where it's needed.  */
+DIAG_IGNORE_NEEDS_COMMENT (4.9, "-Wmaybe-uninitialized");
+#endif
 
 #include <errno.h>
 #if !_LIBC

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

* [glibc/azanella/clang] stdlib: DIAG_IGNORE_NEEDS_COMMENT setenv.c
@ 2023-08-30 12:33 Adhemerval Zanella
  0 siblings, 0 replies; 4+ messages in thread
From: Adhemerval Zanella @ 2023-08-30 12:33 UTC (permalink / raw)
  To: glibc-cvs

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

commit 14e14d131d84a2c1c144962b00eeb42be4d44c92
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Mar 8 17:37:11 2022 -0300

    stdlib: DIAG_IGNORE_NEEDS_COMMENT setenv.c
    
    Checked on x86_64-linux-gnu.

Diff:
---
 stdlib/setenv.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/stdlib/setenv.c b/stdlib/setenv.c
index cc71287fcc..02e418522d 100644
--- a/stdlib/setenv.c
+++ b/stdlib/setenv.c
@@ -19,12 +19,14 @@
 # include <config.h>
 #endif
 
+#if _LIBC
+# include <libc-diag.h>
 /* Pacify GCC; see the commentary about VALLEN below.  This is needed
    at least through GCC 4.9.2.  Pacify GCC for the entire file, as
    there seems to be no way to pacify GCC selectively, only for the
-   place where it's needed.  Do not use DIAG_IGNORE_NEEDS_COMMENT
-   here, as it's not defined yet.  */
-#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
+   place where it's needed.  */
+DIAG_IGNORE_NEEDS_COMMENT (4.9, "-Wmaybe-uninitialized");
+#endif
 
 #include <errno.h>
 #if !_LIBC

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

* [glibc/azanella/clang] stdlib: DIAG_IGNORE_NEEDS_COMMENT setenv.c
@ 2023-02-09 19:45 Adhemerval Zanella
  0 siblings, 0 replies; 4+ messages in thread
From: Adhemerval Zanella @ 2023-02-09 19:45 UTC (permalink / raw)
  To: glibc-cvs

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

commit 084a6ab96f67328c543f697d983977448f1ee912
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Mar 8 17:37:11 2022 -0300

    stdlib: DIAG_IGNORE_NEEDS_COMMENT setenv.c
    
    Checked on x86_64-linux-gnu.

Diff:
---
 stdlib/setenv.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/stdlib/setenv.c b/stdlib/setenv.c
index ba5257d3bf..dda7a4a9c2 100644
--- a/stdlib/setenv.c
+++ b/stdlib/setenv.c
@@ -19,12 +19,14 @@
 # include <config.h>
 #endif
 
+#if _LIBC
+# include <libc-diag.h>
 /* Pacify GCC; see the commentary about VALLEN below.  This is needed
    at least through GCC 4.9.2.  Pacify GCC for the entire file, as
    there seems to be no way to pacify GCC selectively, only for the
-   place where it's needed.  Do not use DIAG_IGNORE_NEEDS_COMMENT
-   here, as it's not defined yet.  */
-#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
+   place where it's needed.  */
+DIAG_IGNORE_NEEDS_COMMENT (4.9, "-Wmaybe-uninitialized");
+#endif
 
 #include <errno.h>
 #if !_LIBC

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

* [glibc/azanella/clang] stdlib: DIAG_IGNORE_NEEDS_COMMENT setenv.c
@ 2022-10-28 17:37 Adhemerval Zanella
  0 siblings, 0 replies; 4+ messages in thread
From: Adhemerval Zanella @ 2022-10-28 17:37 UTC (permalink / raw)
  To: glibc-cvs

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

commit 2be560c84966504d9223a7b6c371ee3d56de718a
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Mar 8 17:37:11 2022 -0300

    stdlib: DIAG_IGNORE_NEEDS_COMMENT setenv.c
    
    Checked on x86_64-linux-gnu.

Diff:
---
 stdlib/setenv.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/stdlib/setenv.c b/stdlib/setenv.c
index 2176cbac31..2add8bfb41 100644
--- a/stdlib/setenv.c
+++ b/stdlib/setenv.c
@@ -19,12 +19,14 @@
 # include <config.h>
 #endif
 
+#if _LIBC
+# include <libc-diag.h>
 /* Pacify GCC; see the commentary about VALLEN below.  This is needed
    at least through GCC 4.9.2.  Pacify GCC for the entire file, as
    there seems to be no way to pacify GCC selectively, only for the
-   place where it's needed.  Do not use DIAG_IGNORE_NEEDS_COMMENT
-   here, as it's not defined yet.  */
-#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
+   place where it's needed.  */
+DIAG_IGNORE_NEEDS_COMMENT (4.9, "-Wmaybe-uninitialized");
+#endif
 
 #include <errno.h>
 #if !_LIBC

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

end of thread, other threads:[~2023-08-30 12:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-04 12:55 [glibc/azanella/clang] stdlib: DIAG_IGNORE_NEEDS_COMMENT setenv.c Adhemerval Zanella
2022-10-28 17:37 Adhemerval Zanella
2023-02-09 19:45 Adhemerval Zanella
2023-08-30 12:33 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).