diff options
author | Joseph Myers <joseph@codesourcery.com> | 2018-06-20 22:19:50 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2018-06-20 22:19:50 +0000 |
commit | 99c7adf99fd0ec4526e592816588d9e3de9a8a4e (patch) | |
tree | 2fa90b41e7ed110ae36c56c94ab77934a64f3ebc /sysdeps | |
parent | 1760daadda047a5fac43c7902ca2cd924612dea7 (diff) | |
download | glibc-99c7adf99fd0ec4526e592816588d9e3de9a8a4e.zip glibc-99c7adf99fd0ec4526e592816588d9e3de9a8a4e.tar.gz glibc-99c7adf99fd0ec4526e592816588d9e3de9a8a4e.tar.bz2 |
Fix tst-cmp.c build with GCC mainline.
Building the testsuite with GCC mainline fails with
-Wstringop-overflow= errors in string/tst-cmp.c. These are for calls
to strncmp and strncasecmp with SIZE_MAX size argument. The tests are
deliberately using this size that would be dubious in normal code, so
this patch disables the warning for the calls in question.
Tested with build-many-glibcs.py for aarch64-linux-gnu.
* string/tst-cmp.c: Include <libc-diag.h>.
(strncmp_max): Disable -Wstringop-overflow= around call to
strncmp.
(strncasecmp_max): Disable -Wstringop-overflow= around call to
strncasecmp.
Diffstat (limited to 'sysdeps')
0 files changed, 0 insertions, 0 deletions