From: Adam Heath Date: Sat, 21 Apr 2001 00:26:55 +0000 (+0000) Subject: New option, --with-Werror, to convert all warnings into errors. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a2e62a7fa3a89324aad7c484db3c6681e4fd6e1;p=dpkg New option, --with-Werror, to convert all warnings into errors. --- diff --git a/ChangeLog b/ChangeLog index f07c1259..37584467 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Fri Apr 20 19:02:46 CDT 2001 Adam Heath + + * configure.in: New option, --with-Werror, to convert all warnings + into errors. + Fri Apr 20 18:21:45 CDT 2001 Adam Heath * automake/dpkg.m4, configure.in: Add support for gcc attributes, diff --git a/configure.in b/configure.in index 6649772f..184d1f57 100644 --- a/configure.in +++ b/configure.in @@ -178,6 +178,15 @@ DPKG_CACHED_TRY_COMPILE(__attribute__((,,)),dpkg_cv_c_attribute_supported,, AC_MSG_RESULT(no)), AC_MSG_RESULT(no)) +AC_MSG_CHECKING(whether to use -Werror) +AC_ARG_WITH(Werror, +[ --with-Werror use -Werror when compiling], + [warn=-Werror] + AC_MSG_RESULT(yes) + DPKG_C_GCC_TRY_WARNS(-Werror, dpkg_cv_c_gcc_warn_error), + [warn=all] + AC_MSG_RESULT(no)) + DPKG_C_GCC_TRY_WARNS(-Wall -Wno-implicit, dpkg_cv_c_gcc_warn_all) DPKG_C_GCC_TRY_WARNS(-Wwrite-strings, dpkg_cv_c_gcc_warn_writestrings) DPKG_C_GCC_TRY_WARNS(-Wpointer-arith, dpkg_cv_c_gcc_warn_pointerarith)