Turn warnings into errors when debugging is enabled
authorMarcel Holtmann <marcel@holtmann.org>
Sun, 21 Dec 2008 19:42:38 +0000 (20:42 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Sun, 21 Dec 2008 19:42:38 +0000 (20:42 +0100)
configure.ac

index 3dcc2df..72cf446 100644 (file)
@@ -32,7 +32,7 @@ AC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug],
                        [enable compiling with debugging information]), [
        if (test "${enableval}" = "yes" &&
                                test "${ac_cv_prog_cc_g}" = "yes"); then
-               CFLAGS="$CFLAGS -g -O0"
+               CFLAGS="$CFLAGS -g -O0 -Werror"
        fi
 ])