Disable -Wstringop-overread for some string tests
authorJoseph Myers <joseph@codesourcery.com>
Mon, 7 Sep 2020 18:11:12 +0000 (18:11 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Mon, 7 Sep 2020 18:11:12 +0000 (18:11 +0000)
commite74b61c09a2a2ab52153e731225ccba5078659b1
tree731765c3e5e4f193c20d1e9b5d9bea845c0e8762
parent3357087b2a95a33dbb38579c9bf7b23f1f85c7a1
Disable -Wstringop-overread for some string tests

Similarly to Maciej's changes to fix the build of rawmemchr in the
presence of GCC 11's -Wstringop-overread, also disable that option in
two string function tests that have similar warnings and other string
function warnings already disabled.

Tested with build-many-glibcs.py for aarch64-linux-gnu and
arm-linux-gnueabi that it fixes building the glibc testsuite.
string/tester.c
string/tst-cmp.c