[giggle/giggle-0-6: 6/10] 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/giggle-0-6: 6/10] configure.ac: Add a option to enable strict compilation warnings (-Werror)
- Date: Thu, 20 Oct 2011 19:55:48 +0000 (UTC)
commit f3276ccf83efc8f9bfaf60015f0ce58c81a3f019
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 ce7dc13..eba65b6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -158,6 +158,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]