From 2c3040453f816d7944273aa8125519e59f2b62ae Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering@fb.com>
Date: Thu, 6 Feb 2020 09:00:26 -0800
Subject: [PATCH] build: suppress new FP warning from gcc-10.0.1

* configure.ac (GNULIB_WARN_CFLAGS): Add -Wno-return-local-addr
to avoid FP warning about careadlinkat.c. Discussed starting in
https://lists.gnu.org/r/coreutils/2020-02/msg00006.html
---
 configure.ac | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/configure.ac b/configure.ac
index 4eab50f1d..5fdb7e589 100644
--- a/configure.ac
+++ b/configure.ac
@@ -202,6 +202,10 @@ if test "$gl_gcc_warnings" = yes; then
   # FIXME: it may be easy to remove this, since it affects only one file:
   # the snprintf call at ftoastr.c:132.
   nw="$nw -Wdouble-promotion"
+
+  # FIXME: remove this line when gcc improves
+  gl_WARN_ADD([-Wno-return-local-addr]) # FP in careadlinkat.c w/gcc 10.0.1 20200205
+
   gl_MANYWARN_COMPLEMENT([GNULIB_WARN_CFLAGS], [$WARN_CFLAGS], [$nw])
   AC_SUBST([GNULIB_WARN_CFLAGS])

-- 
2.25.0.24.gbc7a3d4dc0

