This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch master updated. glibc-2.21-424-g6cfae52


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, master has been updated
       via  6cfae52edfb487ca3b78336a061acb6694338f72 (commit)
      from  71bf272d9189c5ff54476b6b055bb400a2a76800 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=6cfae52edfb487ca3b78336a061acb6694338f72

commit 6cfae52edfb487ca3b78336a061acb6694338f72
Author: Roland McGrath <roland@hack.frob.com>
Date:   Tue Jun 2 12:58:45 2015 -0700

    Fix setenv.c diagnostic pragma to be compatible with GCC 4.6

diff --git a/ChangeLog b/ChangeLog
index e78a97a..33636ba 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-06-02  Roland McGrath  <roland@hack.frob.com>
+
+	* stdlib/setenv.c [__GNUC__,__GNUC_MINOR__ < 4,7]: Use
+	"-Wuninitialized" rather than "-Wmaybe-uninitialized" in pragma.
+
 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
 
 	* sysdeps/aarch64/libm-test-ulps: Update.
diff --git a/stdlib/setenv.c b/stdlib/setenv.c
index 184a8cd..b9e0ba8 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 "-Wuninitialized"
+#endif
 
 #include <errno.h>
 #if !_LIBC

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog       |    5 +++++
 stdlib/setenv.c |    6 +++++-
 2 files changed, 10 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]