[rygel] build: Option to enable fatal valac warings
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] build: Option to enable fatal valac warings
- Date: Mon, 14 Feb 2011 14:59:49 +0000 (UTC)
commit d7874d01bc14ec973068b0ea65dc1215fc49461a
Author: Jens Georg <mail jensge org>
Date: Sun Feb 13 17:22:53 2011 +0100
build: Option to enable fatal valac warings
Also make this default when running autogen.sh
autogen.sh | 4 ++--
configure.ac | 7 +++++++
2 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/autogen.sh b/autogen.sh
index 7f5f354..b891477 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -10,5 +10,5 @@ mkdir -p m4
# require automak 1.11 for vala support
export REQUIRED_AUTOMAKE_VERSION=1.11
gnome-autogen.sh --enable-vala --enable-maintainer-mode --enable-debug \
- --enable-test-plugin --enable-mediathek-plugin \
- --enable-gst-launch-plugin "$@"
+ --enable-strict-valac --enable-test-plugin \
+ --enable-mediathek-plugin --enable-gst-launch-plugin "$@"
diff --git a/configure.ac b/configure.ac
index e086cc2..21e5379 100644
--- a/configure.ac
+++ b/configure.ac
@@ -106,6 +106,13 @@ if test "x$enable_debug" = "xyes"; then
CFLAGS="$CFLAGS -O0 -g"
fi
+AC_ARG_ENABLE([strict-valac],
+ [ --enable-strict-valac enable strict Vala compiler],,
+ [enable_strict_valac=no])
+if test "x$enable_strict_valac" = "xyes"; then
+ VALAFLAGS="$VALAFLAGS --fatal-warnings"
+fi
+
# Strict compiler
AC_ARG_ENABLE(strict-cc,
[ --enable-strict-cc enable strict C compiler],,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]