--- aclocal.m4 +++ aclocal.m4 @@ -451,10 +451,6 @@ dnl get reported as errors? AC_DEFUN(CHECK_CC_WARNING_TEST_FLAGS,[dnl cflags_warning_test_flags= - TRY_WARN_CC_FLAG_1(-Werror=unknown-warning-option) - if test $flag_supported = yes; then - cflags_warning_test_flags=-Werror=unknown-warning-option - fi ])dnl dnl AC_DEFUN(TRY_WARN_CC_FLAG,[dnl @@ -524,7 +520,7 @@ TRY_WARN_CC_FLAG(-Wno-format-zero-length) # Other flags here may not be supported on some versions of # gcc that people want to use. - for flag in overflow strict-overflow missing-format-attribute missing-prototypes return-type missing-braces parentheses switch unused-function unused-label unused-variable unused-value unknown-pragmas sign-compare newline-eof error=uninitialized no-maybe-uninitialized error=pointer-arith error=int-conversion error=incompatible-pointer-types error=discarded-qualifiers error=implicit-int error=strict-prototypes; do + for flag in overflow strict-overflow missing-format-attribute missing-prototypes return-type missing-braces parentheses switch unused-function unused-label unused-variable unused-value unknown-pragmas sign-compare newline-eof no-maybe-uninitialized ; do TRY_WARN_CC_FLAG(-W$flag) done # old-style-definition? generates many, many warnings @@ -541,10 +537,7 @@ # We're currently targeting C89+, not C99, so disallow some # constructs. for flag in declaration-after-statement ; do - TRY_WARN_CC_FLAG(-Werror=$flag) - if test "$flag_supported" = no; then TRY_WARN_CC_FLAG(-W$flag) - fi done # We require function declarations now. # @@ -553,10 +546,6 @@ # version doesn't cause implicitly declared functions to be # flagged as errors. If neither works, -Wall implies # -Wimplicit-function-declaration so don't bother. - TRY_WARN_CC_FLAG(-Werror-implicit-function-declaration) - if test "implicit-function-declaration_supported" = no; then - TRY_WARN_CC_FLAG(-Werror=implicit-function-declaration) - fi # fi if test "`uname -s`" = Darwin ; then