[folks] build: Add --disable-fatal-warnings configure flag
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [folks] build: Add --disable-fatal-warnings configure flag
- Date: Thu, 15 Mar 2012 00:07:18 +0000 (UTC)
commit 24f60323f06e7e801b8c5cb97ffda184ecfcfbc6
Author: Colin Walters <walters verbum org>
Date: Fri Jan 20 12:24:59 2012 -0500
build: Add --disable-fatal-warnings configure flag
Useful for builders who aren't necessarily developers.
configure.ac | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 7cd28e5..c4b6f2e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -480,7 +480,11 @@ AC_SUBST([CODE_COVERAGE_CFLAGS])
AC_SUBST([CODE_COVERAGE_LDFLAGS])
# Vala-related flags
-AS_IF([test "x$enable_vala" = "xyes"],
+AC_ARG_ENABLE([fatal-warnings],
+ AS_HELP_STRING([--disable-fatal-warnings],
+ [Make warnings from valac and g-ir-scanner non-fatal]),
+ [enable_fatal_warnings=$enableval], [enable_fatal_warnings=yes])
+AS_IF([test "x$enable_vala" = "xyes" && test "x$enable_fatal_warnings" = "xyes"],
[ERROR_INTROSPECTION_SCANNER_ARGS="\
$ERROR_INTROSPECTION_SCANNER_ARGS --warn-error"
ERROR_VALAFLAGS="$ERROR_VALAFLAGS --fatal-warnings"])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]