[giggle] configure.ac: Add a option to enable strict compilation warnings (-Werror)
- From: Javier JardÃn <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [giggle] configure.ac: Add a option to enable strict compilation warnings (-Werror)
- Date: Wed, 19 Oct 2011 17:51:00 +0000 (UTC)
commit 2f6ef6050a5bf69daebe7e980eadc01071d7a5f9
Author: Javier JardÃn <jjardon gnome org>
Date: Tue Oct 18 19:08:52 2011 +0100
configure.ac: Add a option to enable strict compilation warnings (-Werror)
configure.ac | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index d43cd35..0ed07ee 100644
--- a/configure.ac
+++ b/configure.ac
@@ -159,6 +159,15 @@ else
fi
dnl ---------------------------------------------------------------------------
+dnl - Enable strict warnings (-Werror) (disabled by default)
+dnl ---------------------------------------------------------------------------
+AC_ARG_ENABLE([strict],
+ [AS_HELP_STRING([--enable-strict],
+ [Enable strict compilation warnings '-Werror'])])
+AS_IF([test "x$enable_strict" = "xyes"],
+ [CPPFLAGS="$CPPFLAGS -Werror"])
+
+dnl ---------------------------------------------------------------------------
dnl - Extra verbose warning switches
dnl ---------------------------------------------------------------------------
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]