[pygobject] Use GNOME_COMPILE_WARNINGS from gnome-common



commit 206e736380ba798c68de09f661d75c8e27451117
Author: Martin Pitt <martinpitt gnome org>
Date:   Tue Jan 15 09:47:11 2013 +0100

    Use GNOME_COMPILE_WARNINGS from gnome-common
    
    As we are now using gnome-common anyway for the code coverage macro, also use
    GNOME_COMPILE_WARNINGS, and only manually specify the extra options that we
    want beyond that.
    
    This also enables -Wstrict-prototypes.

 configure.ac |   14 ++++----------
 1 files changed, 4 insertions(+), 10 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 2ddb564..893ef63 100644
--- a/configure.ac
+++ b/configure.ac
@@ -226,15 +226,11 @@ INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspecti
 AC_SUBST(INTROSPECTION_SCANNER)
 AC_SUBST(INTROSPECTION_COMPILER)
 
-dnl add required cflags ...
+# compiler warnings, errors, required cflags, and code coverage support
+GNOME_COMPILE_WARNINGS([maximum])
+GNOME_CODE_COVERAGE
 if test "x$GCC" = "xyes"; then
   JH_ADD_CFLAG([-Wall])
-  #JH_ADD_CFLAG([-Werror=missing-prototypes])
-  JH_ADD_CFLAG([-Werror=implicit-function-declaration])
-  JH_ADD_CFLAG([-Werror=pointer-arith])
-  JH_ADD_CFLAG([-Werror=format-security])
-  JH_ADD_CFLAG([-Werror=missing-include-dirs])
-  JH_ADD_CFLAG([-Werror=format])
   JH_ADD_CFLAG([-Werror=unused-variable])
   JH_ADD_CFLAG([-fno-strict-aliasing])
 
@@ -248,9 +244,7 @@ if test "x$GCC" = "xyes"; then
 
 fi
 
-# enable code coverage support
-GNOME_CODE_COVERAGE
-CFLAGS="$CFLAGS $CODE_COVERAGE_CFLAGS"
+CFLAGS="$CFLAGS $WARN_CFLAGS $CODE_COVERAGE_CFLAGS"
 LDFLAGS="$LDFLAGS $CODE_COVERAGE_CFLAGS"
 
 AC_CONFIG_FILES(



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