]> Savannah Git Hosting - gnulib.git/commitdiff
setlocale-null-tests: work around GCC bug 44511
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 22 Nov 2020 02:32:11 +0000 (18:32 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 22 Nov 2020 02:32:39 +0000 (18:32 -0800)
* tests/test-setlocale_null-mt-all.c:
* tests/test-setlocale_null-mt-one.c:
Ignore -Wreturn-type, to work around GCC bug 44511.

ChangeLog
tests/test-setlocale_null-mt-all.c
tests/test-setlocale_null-mt-one.c

index d46bfbb1a78ffcc94e71e649085055ef68d23644..de92d102e6d2f6456fcdb20742742081b7438a21 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>.
index 6dbf4766c6b4e258dcf8c93278bb0205ac7beb8a..81f542837e9e2b169e7346a08fa8885fabb41461 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.  */
index f07aaf4c60821d98dcdeb63320279991b35fc240..e305ceade2951973afe69b86119b136efa789029 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.  */