]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
build: suppress new FP warning from gcc-10.0.1
authorJim Meyering <meyering@fb.com>
Thu, 6 Feb 2020 17:00:26 +0000 (09:00 -0800)
committerJim Meyering <meyering@fb.com>
Sun, 9 Feb 2020 01:52:48 +0000 (17:52 -0800)
* 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

index 4eab50f1d0e8646e868a4b85e2d0d3b86c829131..5fdb7e58981a8571df2272a537eb86ce13a0b812 100644 (file)
@@ -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])