This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch roland/setenv-pragma created. glibc-2.21-424-g947e0fa
- From: roland at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 2 Jun 2015 19:56:36 -0000
- Subject: GNU C Library master sources branch roland/setenv-pragma created. glibc-2.21-424-g947e0fa
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, roland/setenv-pragma has been created
at 947e0fa51f1d5304555b0987808f0456f362e596 (commit)
- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=947e0fa51f1d5304555b0987808f0456f362e596
commit 947e0fa51f1d5304555b0987808f0456f362e596
Author: Roland McGrath <roland@hack.frob.com>
Date: Tue Jun 2 12:56:22 2015 -0700
foo
diff --git a/stdlib/setenv.c b/stdlib/setenv.c
index 184a8cd..511a69b 100644
--- a/stdlib/setenv.c
+++ b/stdlib/setenv.c
@@ -24,7 +24,11 @@
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"
+#if ((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7)
+# pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
+#else
+# pragma GCC diagnostic ignored "-uninitialized"
+#endif
#include <errno.h>
#if !_LIBC
-----------------------------------------------------------------------
hooks/post-receive
--
GNU C Library master sources