Turn warnings into errors when debugging is enabled
[connman] / 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
 ])