about summary refs log tree commit diff
diff options
context:
space:
mode:
authorOndřej Bílka <neleai@seznam.cz>2015-01-06 17:43:09 +0100
committerOndřej Bílka <neleai@seznam.cz>2015-01-06 17:43:09 +0100
commit9300797ee93422a87f443d5ba7e1411167e7a837 (patch)
tree83b460c32baade3967321f81c1c77ca79c195708
parentdc8ab018328ae2c6a67af0b9693f08949dd8906e (diff)
downloadglibc-9300797ee93422a87f443d5ba7e1411167e7a837.tar.gz
glibc-9300797ee93422a87f443d5ba7e1411167e7a837.tar.xz
glibc-9300797ee93422a87f443d5ba7e1411167e7a837.zip
Suppress warning in string/tester.c for gcc 4.9
-rw-r--r--ChangeLog1
-rw-r--r--string/tester.c6
2 files changed, 4 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 2edda5ef2e..5fe5e58455 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@
 
 	* sysdeps/unix/sysv/linux/check_pf.c (make_request):
 	Clean up check_pf allocation pattern. addresses
+	* string/tester.c (test_memset): Suppress warning for gcc 4.9
 
 2015-01-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
 
diff --git a/string/tester.c b/string/tester.c
index f957ed29d4..64dc056084 100644
--- a/string/tester.c
+++ b/string/tester.c
@@ -1305,10 +1305,10 @@ test_memset (void)
   equal(one, "axxxefgh", 2);		/* Basic test. */
 
   DIAG_PUSH_NEEDS_COMMENT;
-#if __GNUC_PREREQ (5, 0)
-  /* GCC 5.0 warns about a zero-length memset because the arguments to memset
+#if __GNUC_PREREQ (4, 9)
+  /* GCC 4.9 warns about a zero-length memset because the arguments to memset
      may be in the wrong order.  But we really want to test this.  */
-  DIAG_IGNORE_NEEDS_COMMENT (5.0, "-Wmemset-transposed-args")
+  DIAG_IGNORE_NEEDS_COMMENT (4.9, "-Wmemset-transposed-args")
 #endif
   (void) memset(one+2, 'y', 0);
   equal(one, "axxxefgh", 3);		/* Zero-length set. */