[gnome-boxes] Silence the C warnings by default
- From: Marc-Andre Lureau <malureau src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] Silence the C warnings by default
- Date: Wed, 5 Oct 2011 21:20:56 +0000 (UTC)
commit a2d611a62f8580fbb439b2313b47103e96d01f85
Author: Marc-Andrà Lureau <marcandre lureau gmail com>
Date: Wed Oct 5 23:20:07 2011 +0200
Silence the C warnings by default
Thanks rygel for the snippet!
configure.ac | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index da4eaa1..93f8c86 100644
--- a/configure.ac
+++ b/configure.ac
@@ -63,6 +63,16 @@ VALA_CHECK_PACKAGES([
cogl-1.0
])
+dnl Strict compiler
+AC_ARG_ENABLE(strict-cc,
+ AS_HELP_STRING([--enable-strict-cc],[enable strict C compiler]),,
+ enable_strict_cc=no)
+if test "x$enable_strict_cc" = "xyes"; then
+ CFLAGS="$CFLAGS -Wall -Werror"
+else
+ CFLAGS="$CFLAGS -w"
+fi
+
AC_CONFIG_FILES([
Makefile
src/Makefile
@@ -77,8 +87,8 @@ AC_OUTPUT
dnl ==========================================================================
AC_MSG_NOTICE([
- Boxes $VERSION
- ==============
+ GNOME Boxes $VERSION
+ =================
prefix: ${prefix}
c compiler: ${CC}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]