]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix a couple of -Wundef warnings.
authorChris Metcalf <cmetcalf@ezchip.com>
Tue, 30 Dec 2014 04:14:38 +0000 (23:14 -0500)
committerChris Metcalf <cmetcalf@ezchip.com>
Tue, 30 Dec 2014 04:14:38 +0000 (23:14 -0500)
ChangeLog
stdlib/tst-limits.c
sysdeps/unix/sysv/linux/tst-setgetname.c

index 3aa137c81da5a341a1596e6453c581703e34c85f..d5aeddc4007612fb3be7cc8570e5454b102fcf72 100644 (file)
--- 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
index 6e51dcadb5baaabb98c7bd812dc74cd4182c9a68..9aabc360f6b8c3f72427e0a70ddf766dabe4d4d2 100644 (file)
@@ -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
 
index f5693e26c4222dc3fc93682afaaedb3f745726f6..7799ebe57bc3ff0981b3ce1c7d142507094d75be 100644 (file)
@@ -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.