[Telepathy-commits] [telepathy-gabble/master] Add --disable-Werror in configure.ac, as done in tp-glib. Useful to disable the warning -Wno-unused-parameter.

Alban Crequy alban.crequy at collabora.co.uk
Mon Oct 20 09:12:41 PDT 2008


---
 configure.ac |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac
index c91dd50..102128d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -36,6 +36,11 @@ AC_PROG_LIBTOOL
 dnl decide error flags
 AS_COMPILER_FLAG(-Wall, ERROR_CFLAGS="-Wall", ERROR_CFLAGS="")
 AS_COMPILER_FLAG(-Werror, werror=yes, werror=no)
+
+AC_ARG_ENABLE(Werror,
+  AC_HELP_STRING([--disable-Werror],[compile without -Werror (normally enabled in development builds)]),
+    werror=$enableval, :)
+
 AS_COMPILER_FLAG(-Wextra, wextra=yes, wextra=no)
 AS_COMPILER_FLAG(-Wno-missing-field-initializers,
         wno_missing_field_initializers=yes,
-- 
1.5.6.5




More information about the Telepathy-commits mailing list