From cd35a68a4c815c621b61ad192c8ba1ac90462b39 Mon Sep 17 00:00:00 2001 From: Jens Georg Date: Fri, 30 Nov 2012 14:27:10 +0100 Subject: [PATCH] Move -Werror out of --enable-debug Unbreak building with deprecation warning now, decide on better warnings/errors later. https://bugzilla.gnome.org/show_bug.cgi?id=682308 --- configure.ac | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index e48c0a7..c4d095e 100644 --- a/configure.ac +++ b/configure.ac @@ -69,9 +69,15 @@ AC_ARG_ENABLE(debug, [ --enable-debug enable debugging],, enable_debug=no) if test "x$enable_debug" = "xyes"; then - CFLAGS="$CFLAGS -g -Wall -Werror" + CFLAGS="$CFLAGS -g -Wall" fi +AC_ARG_ENABLE([strict-c], + AS_HELP_STRING([--enable-strict-c],[Error out on warnings]),, + [enable_strict_c=no]) +AS_IF([test "x$[]enable_strict_c" = "xyes"], + [CFLAGS="$CFLAGS -Werror"]) + GOBJECT_INTROSPECTION_CHECK([0.6.7]) # vapigen -- 2.7.4