diff options
author | Joseph Myers <joseph@codesourcery.com> | 2020-09-07 18:11:12 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2020-09-07 18:11:12 +0000 |
commit | e74b61c09a2a2ab52153e731225ccba5078659b1 (patch) | |
tree | 731765c3e5e4f193c20d1e9b5d9bea845c0e8762 /string/tester.c | |
parent | 3357087b2a95a33dbb38579c9bf7b23f1f85c7a1 (diff) | |
download | glibc-e74b61c09a2a2ab52153e731225ccba5078659b1.zip glibc-e74b61c09a2a2ab52153e731225ccba5078659b1.tar.gz glibc-e74b61c09a2a2ab52153e731225ccba5078659b1.tar.bz2 |
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.
Diffstat (limited to 'string/tester.c')
-rw-r--r-- | string/tester.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/string/tester.c b/string/tester.c index bcd7148..b7acf29 100644 --- a/string/tester.c +++ b/string/tester.c @@ -47,6 +47,9 @@ DIAG_IGNORE_NEEDS_COMMENT (7, "-Wstringop-overflow="); #if __GNUC_PREREQ (8, 0) DIAG_IGNORE_NEEDS_COMMENT (8, "-Wstringop-truncation"); #endif +#if __GNUC_PREREQ (11, 0) +DIAG_IGNORE_NEEDS_COMMENT (11, "-Wstringop-overread"); +#endif #define STREQ(a, b) (strcmp((a), (b)) == 0) |