gobject-introspection r731 - trunk



Author: tko
Date: Thu Oct 16 17:37:46 2008
New Revision: 731
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=731&view=rev

Log:
2008-10-16  Tommi Komulainen  <tommi komulainen iki fi>

	* configure.ac: enable bunch of gcc warning CFLAGS

Modified:
   trunk/ChangeLog
   trunk/configure.ac

Modified: trunk/configure.ac
==============================================================================
--- trunk/configure.ac	(original)
+++ trunk/configure.ac	Thu Oct 16 17:37:46 2008
@@ -46,6 +46,29 @@
 	AC_MSG_ERROR([bison not found but required])
 fi
 
+changequote(,)dnl
+ensureflag() {
+  flag="$1"; shift
+  result="$@"
+
+  case " ${result} " in
+  *[\ \	]${flag}[\ \	]*) ;;
+  *) result="${flag} ${result}" ;;
+  esac
+
+  echo ${result}
+}
+changequote([,])dnl
+
+if test "$GCC" = "yes"; then
+    for flag in -Wall -Wchar-subscripts -Wmissing-declarations \
+        -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align \
+        -Wsign-compare -fno-strict-aliasing;
+    do
+        CFLAGS="$(ensureflag $flag $CFLAGS)"
+    done
+fi
+
 # Checks for libraries.
 GI_ENABLE_GCOV
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]