diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2020-11-21 18:09:29 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2020-11-21 18:10:23 -0800 |
commit | f60dd0747ad75c2971cc314111c8fc2b8a38ce19 (patch) | |
tree | 2b688fb062134c3da25667a42dc5f0778eb9da0b | |
parent | a8269e99d349a8598d4f405af787139285475702 (diff) | |
download | gnulib-f60dd0747ad75c2971cc314111c8fc2b8a38ce19.tar.gz gnulib-f60dd0747ad75c2971cc314111c8fc2b8a38ce19.tar.bz2 |
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>.
Problem reported for GNU grep by Andreas Schwab
<https://bugs.gnu.org/44535>.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | tests/test-nl_langinfo-mt.c | 5 |
2 files changed, 11 insertions, 0 deletions
@@ -1,5 +1,11 @@ 2020-11-21 Paul Eggert <eggert@cs.ucla.edu> + 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>. + Problem reported for GNU grep by Andreas Schwab + <https://bugs.gnu.org/44535>. + selinux-h: add stubs for selabel_open etc. Coreutils with --enable-gcc-warnings does not build on Ubuntu 20.10 because matchpathcon is deprecated in favor of selabel_open etc., diff --git a/tests/test-nl_langinfo-mt.c b/tests/test-nl_langinfo-mt.c index 4d207f1be9..751008ff9b 100644 --- a/tests/test-nl_langinfo-mt.c +++ b/tests/test-nl_langinfo-mt.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. */ |