[libgdata] build: Add extra compiler warnings to the build



commit fcc2d13dc25eba59d8fb52daaa9ede4e5604e0f2
Author: Philip Withnall <philip tecnocode co uk>
Date:   Wed Sep 4 09:04:30 2013 -0600

    build: Add extra compiler warnings to the build
    
    This is dependent on recent changes in gnome-common
    (bug #707475).
    
    The new compiler warnings can be disabled by setting
    --enable-compile-warnings to anything other than ‘yes’
    or ‘maximum’ during configuration.

 configure.ac |   29 ++++++++++++++++++++++++++++-
 1 files changed, 28 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 0d070c5..252d6e0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -141,7 +141,34 @@ GNOME_CODE_COVERAGE
 
 # General GNOME macros
 GNOME_DEBUG_CHECK
-GNOME_COMPILE_WARNINGS([maximum])
+GNOME_COMPILE_WARNINGS([maximum],[
+       -Wdeclaration-after-statement
+       -Wextra
+       -Winline
+       -Wpacked
+       -Wlarger-than-65500
+       -Wmissing-declarations
+       -Wmissing-format-attribute
+       -Wmissing-noreturn
+       -Wold-style-definition
+       -Wsign-compare
+       -Wstrict-aliasing=2
+       -Wswitch-enum
+       -Wundef
+       -Wunsafe-loop-optimizations
+       -Wwrite-strings
+       -Wno-missing-field-initializers
+       -Wno-unused-parameter
+       -Wshadow
+       -Wcast-align
+       -Wformat-nonliteral
+       -Wswitch-default
+       -Waggregate-return
+       -Wredundant-decls
+       -Wunused-but-set-variable
+       -Warray-bounds
+])
+
 GNOME_MAINTAINER_MODE_DEFINES
 
 GOBJECT_INTROSPECTION_CHECK([0.9.7])


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