[folks] Turn on all g-i warnings and make them errors (for non-releases).
- From: Travis Reitter <treitter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [folks] Turn on all g-i warnings and make them errors (for non-releases).
- Date: Fri, 17 Sep 2010 23:57:04 +0000 (UTC)
commit 32ab6381fd34d9222095dd080bb54cb7580596f0
Author: Travis Reitter <travis reitter collabora co uk>
Date: Thu Sep 16 10:11:48 2010 -0700
Turn on all g-i warnings and make them errors (for non-releases).
backends/telepathy/lib/Makefile.am | 10 +++++++++-
configure.ac | 2 ++
2 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/backends/telepathy/lib/Makefile.am b/backends/telepathy/lib/Makefile.am
index 78811f2..689e884 100644
--- a/backends/telepathy/lib/Makefile.am
+++ b/backends/telepathy/lib/Makefile.am
@@ -45,7 +45,15 @@ DISTCHECK_CONFIGURE_FLAGS = --enable-introspection
-include $(INTROSPECTION_MAKEFILE)
INTROSPECTION_GIRS =
-INTROSPECTION_SCANNER_ARGS = --add-include-path=$(srcdir) --warn-all
+INTROSPECTION_SCANNER_ARGS = \
+ --add-include-path=$(srcdir) \
+ --warn-all \
+ $(NULL)
+
+if !FOLKS_RELEASED
+INTROSPECTION_SCANNER_ARGS += --warn-error
+endif
+
INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir)
CLEANFILES =
diff --git a/configure.ac b/configure.ac
index ac3b48f..f9550e2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -66,6 +66,8 @@ AC_SUBST([LT_AGE])
FOLKS_MAJOR_MINOR_VERSION=folks_major_minor_version
AC_SUBST([FOLKS_MAJOR_MINOR_VERSION])
+AM_CONDITIONAL([FOLKS_RELEASED], [test folks_released = 1])
+
# -----------------------------------------------------------
# Dependencies
# -----------------------------------------------------------
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]