aboutsummaryrefslogtreecommitdiff
path: root/string
diff options
context:
space:
mode:
authorOndřej Bílka <neleai@seznam.cz>2015-01-06 18:43:28 +0100
committerOndřej Bílka <neleai@seznam.cz>2015-01-06 18:43:28 +0100
commit500bfbd4922902ea278adab06e58b77eb355ba82 (patch)
treece1779d0f66f9c5183b834427356885cdd3a22c9 /string
parent1cf98e27a7280b55f42aae191b6083d71e42e993 (diff)
downloadglibc-500bfbd4922902ea278adab06e58b77eb355ba82.zip
glibc-500bfbd4922902ea278adab06e58b77eb355ba82.tar.gz
glibc-500bfbd4922902ea278adab06e58b77eb355ba82.tar.bz2
Revert "Suppress warning in string/tester.c for gcc 4.9"
This reverts commit 9300797ee93422a87f443d5ba7e1411167e7a837.
Diffstat (limited to 'string')
-rw-r--r--string/tester.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/string/tester.c b/string/tester.c
index 64dc056..f957ed2 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 (4, 9)
- /* GCC 4.9 warns about a zero-length memset because the arguments to memset
+#if __GNUC_PREREQ (5, 0)
+ /* GCC 5.0 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 (4.9, "-Wmemset-transposed-args")
+ DIAG_IGNORE_NEEDS_COMMENT (5.0, "-Wmemset-transposed-args")
#endif
(void) memset(one+2, 'y', 0);
equal(one, "axxxefgh", 3); /* Zero-length set. */