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.20-437-g6d6d7fd


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  6d6d7fde04c8ef830205a9900bf101597a2f4b18 (commit)
      from  cd2c37c979fa19e93ded9e0ed545787271ec0de2 (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=6d6d7fde04c8ef830205a9900bf101597a2f4b18

commit 6d6d7fde04c8ef830205a9900bf101597a2f4b18
Author: Chris Metcalf <cmetcalf@ezchip.com>
Date:   Mon Dec 29 23:14:38 2014 -0500

    Fix a couple of -Wundef warnings.

diff --git a/ChangeLog b/ChangeLog
index 3aa137c..d5aeddc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2014-12-29  Chris Metcalf  <cmetcalf@ezchip.com>
 
+	* sysdeps/unix/sysv/linux/tst-setgetname.c (do_test): Use #ifndef
+	instead of #if to avoid a Wundef warning.
+	* stdlib/tst-limits.c (do_test): Likewise.
+
 	* sysdeps/tile/math_private.h (fetestexcept): Add macro to
 	parallel other exception macros.
 	(fegetenv): Convert from macro to extern inline so that it applies
diff --git a/stdlib/tst-limits.c b/stdlib/tst-limits.c
index 6e51dca..9aabc36 100644
--- a/stdlib/tst-limits.c
+++ b/stdlib/tst-limits.c
@@ -58,7 +58,7 @@ do_test (void)
   /* Values from POSIX and Unix.  */
 #ifdef PAGESIZE
   TEST (PAGESIZE, "d", getpagesize ());
-#elif PAGE_SIZE
+#elif defined (PAGE_SIZE)
   TEST (PAGE_SIZE, "d", getpagesize ());
 #endif
 
diff --git a/sysdeps/unix/sysv/linux/tst-setgetname.c b/sysdeps/unix/sysv/linux/tst-setgetname.c
index f5693e2..7799ebe 100644
--- a/sysdeps/unix/sysv/linux/tst-setgetname.c
+++ b/sysdeps/unix/sysv/linux/tst-setgetname.c
@@ -101,7 +101,7 @@ do_test (int argc, char **argv)
     {
       res = get_self_comm (gettid (), name_check, TASK_COMM_LEN);
 
-#if !__ASSUME_PROC_PID_TASK_COMM
+#ifndef __ASSUME_PROC_PID_TASK_COMM
       /* On this first test we look for ENOENT to be returned from
          get_self_comm to indicate that the kernel is older than
          2.6.33 and doesn't contain comm within the proc structure.

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

Summary of changes:
 ChangeLog                                |    4 ++++
 stdlib/tst-limits.c                      |    2 +-
 sysdeps/unix/sysv/linux/tst-setgetname.c |    2 +-
 3 files changed, 6 insertions(+), 2 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]