]> err.no Git - dpkg/commitdiff
New option, --with-Werror, to convert all warnings into errors.
authorAdam Heath <doogie@debian.org>
Sat, 21 Apr 2001 00:26:55 +0000 (00:26 +0000)
committerAdam Heath <doogie@debian.org>
Sat, 21 Apr 2001 00:26:55 +0000 (00:26 +0000)
ChangeLog
configure.in

index f07c1259163f1f9c7a9cdb141a0c5c5ea8ac5a9c..375844670f1d6289acc3d12d63829942847e5d26 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Fri Apr 20 19:02:46 CDT 2001 Adam Heath <doogie@debian.org>
+
+  * configure.in: New option, --with-Werror, to convert all warnings
+    into errors.
+
 Fri Apr 20 18:21:45 CDT 2001 Adam Heath <doogie@debian.org>
 
   * automake/dpkg.m4, configure.in: Add support for gcc attributes,
index 6649772fe90e86f04cedfb239a29ec52a73fe5a6..184d1f57c3de89934d7fc6cf075b128fcfb152e8 100644 (file)
@@ -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)