>From f60dd0747ad75c2971cc314111c8fc2b8a38ce19 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 21 Nov 2020 18:09:29 -0800 Subject: [PATCH] nl_langinfo-tests: work around GCC bug 44511 * tests/test-nl_langinfo-mt.c: Ignore -Wreturn-type, to work around a GCC bug . Problem reported for GNU grep by Andreas Schwab . --- ChangeLog | 6 ++++++ tests/test-nl_langinfo-mt.c | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index 745a90097..d46bfbb1a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2020-11-21 Paul Eggert + nl_langinfo-tests: work around GCC bug 44511 + * tests/test-nl_langinfo-mt.c: Ignore -Wreturn-type, to work + around a GCC bug . + Problem reported for GNU grep by Andreas Schwab + . + 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 4d207f1be..751008ff9 100644 --- a/tests/test-nl_langinfo-mt.c +++ b/tests/test-nl_langinfo-mt.c @@ -18,6 +18,11 @@ #include +/* 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. */ -- 2.27.0