mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-09 23:00:07 +00:00
Revert "Suppress warning in string/tester.c for gcc 4.9"
This reverts commit 9300797ee9
.
This commit is contained in:
parent
1cf98e27a7
commit
500bfbd492
@ -13,7 +13,6 @@
|
||||
|
||||
* 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>
|
||||
|
||||
|
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user