diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2020-11-21 18:32:11 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2020-11-21 18:32:39 -0800 |
commit | cd7fa0904bb6efb451ecc25907077fcfdf031824 (patch) | |
tree | 0e6c911949d1b78329ba9b68ccbbfbcc8fb83033 | |
parent | f60dd0747ad75c2971cc314111c8fc2b8a38ce19 (diff) | |
download | gnulib-cd7fa0904bb6efb451ecc25907077fcfdf031824.tar.gz gnulib-cd7fa0904bb6efb451ecc25907077fcfdf031824.tar.bz2 |
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.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | tests/test-setlocale_null-mt-all.c | 5 | ||||
-rw-r--r-- | tests/test-setlocale_null-mt-one.c | 5 |
3 files changed, 15 insertions, 0 deletions
@@ -1,5 +1,10 @@ 2020-11-21 Paul Eggert <eggert@cs.ucla.edu> + 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 <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44511>. 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 <config.h> +/* 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 <config.h> +/* 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. */ |