[gitg] Enable -Werror in maintainer mode



commit ecc4e1baad5dca48cf509531ddeba40ccf43b577
Author: Jesse van den Kieboom <jessevdk gnome org>
Date:   Sat May 29 18:01:14 2010 +0200

    Enable -Werror in maintainer mode

 configure.ac |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 5fe15a3..af75209 100644
--- a/configure.ac
+++ b/configure.ac
@@ -71,6 +71,13 @@ AC_ARG_ENABLE([bundle],
 	[enable_bundle=$enableval],
 	[enable_bundle=no])
 
+if test "x$USE_MAINTAINER_MODE" = "xyes"; then
+PACKAGE_CFLAGS="$PACKAGE_CFLAGS -Wall -Werror -Wuninitialized -Wmissing-declarations"
+fi
+
+AC_SUBST(PACKAGE_CFLAGS)
+AC_SUBST(PACKAGE_LIBS)
+
 if test "$enable_bundle" = "yes"; then
 	AC_DEFINE([ENABLE_BUNDLE],[1],[Defined if building bundle])
 fi



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]