summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2011-11-22 21:45:24 +0100
committerJim Meyering <meyering@redhat.com>2011-11-23 08:56:48 +0100
commitda38f12d6f0cfcf0c990c2b8ca7e982f655540d8 (patch)
treead9ab763b31963c094a97cfe2f144cbd37887b35
parenta2c811db420717d61bf948afdd879454d9187d38 (diff)
downloadcoreutils-da38f12d6f0cfcf0c990c2b8ca7e982f655540d8.tar.xz
build: --enable-gcc-warnings: disable some new warnings
* configure.ac: Disable some new warning options pulled in via an update to gnulib's manywarnings module: -Wformat-nonliteral, -Wunsuffixed-float-constants, -Wdouble-promotion.
-rw-r--r--configure.ac5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 8241b55db..3c4681c57 100644
--- a/configure.ac
+++ b/configure.ac
@@ -121,6 +121,8 @@ if test "$gl_gcc_warnings" = yes; then
gl_WARN_ADD([-Wno-unused-parameter]) # Too many warnings for now
gl_WARN_ADD([-Wsuggest-attribute=const])
gl_WARN_ADD([-Wsuggest-attribute=noreturn])
+ gl_WARN_ADD([-Wno-format-nonliteral])
+ gl_WARN_ADD([-Wno-unsuffixed-float-constants])
# Enable this warning only with gcc-4.7 and newer. With 4.6.1 20110824,
# it suggests test.c's advance function may be pure, even though it
@@ -151,6 +153,9 @@ if test "$gl_gcc_warnings" = yes; then
nw="$nw -Wunused-macros"
nw="$nw -Wmissing-prototypes"
nw="$nw -Wold-style-definition"
+ # 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/reenable the following two, once gnulib is adjusted.
nw="$nw -Wsuggest-attribute=const"
nw="$nw -Wsuggest-attribute=pure"