From: Paul Eggert Date: Sun, 22 Nov 2020 02:32:11 +0000 (-0800) Subject: setlocale-null-tests: work around GCC bug 44511 X-Git-Tag: v1.0~3482 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=cd7fa0904bb6efb451ecc25907077fcfdf031824;p=gnulib.git setlocale-null-tests: work around GCC bug 44511 * tests/test-setlocale_null-mt-all.c: * tests/test-setlocale_null-mt-one.c: Ignore -Wreturn-type, to work around GCC bug 44511. --- diff --git a/ChangeLog b/ChangeLog index d46bfbb1a7..de92d102e6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2020-11-21 Paul Eggert + setlocale-null-tests: work around GCC bug 44511 + * tests/test-setlocale_null-mt-all.c: + * tests/test-setlocale_null-mt-one.c: + Ignore -Wreturn-type, to work around GCC bug 44511. + nl_langinfo-tests: work around GCC bug 44511 * tests/test-nl_langinfo-mt.c: Ignore -Wreturn-type, to work around a GCC bug . diff --git a/tests/test-setlocale_null-mt-all.c b/tests/test-setlocale_null-mt-all.c index 6dbf4766c6..81f542837e 100644 --- a/tests/test-setlocale_null-mt-all.c +++ b/tests/test-setlocale_null-mt-all.c @@ -18,6 +18,11 @@ #include +/* Work around GCC bug 44511. */ +#if 4 < __GNUC__ + (3 <= __GNUC_MINOR__) +# pragma GCC diagnostic ignored "-Wreturn-type" +#endif + #if USE_ISOC_THREADS || USE_POSIX_THREADS || USE_ISOC_AND_POSIX_THREADS || USE_WINDOWS_THREADS /* Specification. */ diff --git a/tests/test-setlocale_null-mt-one.c b/tests/test-setlocale_null-mt-one.c index f07aaf4c60..e305ceade2 100644 --- a/tests/test-setlocale_null-mt-one.c +++ b/tests/test-setlocale_null-mt-one.c @@ -18,6 +18,11 @@ #include +/* Work around GCC bug 44511. */ +#if 4 < __GNUC__ + (3 <= __GNUC_MINOR__) +# pragma GCC diagnostic ignored "-Wreturn-type" +#endif + #if USE_ISOC_THREADS || USE_POSIX_THREADS || USE_ISOC_AND_POSIX_THREADS || USE_WINDOWS_THREADS /* Specification. */