* tests/test-setlocale_null-mt-all.c:
* tests/test-setlocale_null-mt-one.c:
Ignore -Wreturn-type, to work around GCC bug 44511.
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>.
#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. */
#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. */