From: Paul Eggert Date: Tue, 22 Oct 2019 18:34:56 +0000 (-0700) Subject: build: re-enable type-limits checking X-Git-Tag: v8.32~45 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6716a79773adbd6b7639a78b0f5d444d974e9244;p=thirdparty%2Fcoreutils.git build: re-enable type-limits checking * configure.ac: When --enable-gcc-warnings is used, omit -Wno-type-limits. The need for -Wno-type-limits has passed, now that intprops.h uses builtin primitives for GCC 5 and later, given that recent GCCs issue type-limits warnings only for non-constant expressions. --enable-gcc-warnings is not intended for use with old compilers, so we can drop -Wno-type-limits now. --- diff --git a/configure.ac b/configure.ac index d90c710e31..292ae0bf2a 100644 --- a/configure.ac +++ b/configure.ac @@ -134,7 +134,6 @@ if test "$gl_gcc_warnings" = yes; then nw="$nw -Wswitch-enum" # Too many warnings for now nw="$nw -Wswitch-default" # Too many warnings for now nw="$nw -Wstack-protector" # not worth working around - nw="$nw -Wtype-limits" # False alarms for portable code nw="$nw -Wformat-overflow=2" # False alarms due to GCC bug 80776 nw="$nw -Wformat-truncation=2" # False alarm in ls.c, probably related # things I might fix soon: @@ -155,7 +154,6 @@ if test "$gl_gcc_warnings" = yes; then gl_WARN_ADD([$w]) done gl_WARN_ADD([-Wno-sign-compare]) # Too many warnings for now - gl_WARN_ADD([-Wno-type-limits]) # False alarms for portable code gl_WARN_ADD([-Wno-unused-parameter]) # Too many warnings for now gl_WARN_ADD([-Wno-format-nonliteral])