]> Savannah Git Hosting - gnulib.git/commitdiff
nl_langinfo-tests: work around GCC bug 44511
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 22 Nov 2020 02:09:29 +0000 (18:09 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 22 Nov 2020 02:10:23 +0000 (18:10 -0800)
* 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>.

ChangeLog
tests/test-nl_langinfo-mt.c

index 745a900978a1942903177f361a89bf500338b643..d46bfbb1a78ffcc94e71e649085055ef68d23644 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.,
index 4d207f1be9899c310b00ba571d3fef2047bb6b9e..751008ff9b4e3742141c241be67377174fc224de 100644 (file)
 
 #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.  */