[epiphany/wip/autocrap: 2/2] Silence all the new warnings



commit 62ec98f2fe90cd9c2853372263adc1a8f09dab62
Author: Michael Catanzaro <mcatanzaro igalia com>
Date:   Mon Jun 29 21:45:36 2015 -0500

    Silence all the new warnings
    
    Let's fix these one-by-one, instead of dealing with a bajillion warnings
    that prevent us from seeing the build progress and noticing any warnings
    at all.
    
    Also, actually make use of AX_COMPILER_FLAGS to test the flags we pass,
    instead of using them unconditionally.

 configure.ac |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 0e2f1f1..4440516 100644
--- a/configure.ac
+++ b/configure.ac
@@ -34,8 +34,11 @@ AC_SUBST([EPIPHANY_MAJOR],[epiphany_version_major.epiphany_version_minor])
 
 AX_CHECK_ENABLE_DEBUG([yes])
 AX_CODE_COVERAGE
-AX_COMPILER_FLAGS([WARN_CFLAGS], [WARN_LDFLAGS])
-WARN_CFLAGS="$WARN_CFLAGS -Wdeclaration-after-statement -Wno-deprecated-declarations"
+AX_COMPILER_FLAGS([WARN_CFLAGS], [WARN_LDFLAGS], [$ax_is_release], [-Wdeclaration-after-statement],
+       dnl TODO: Remove all of these! These warnings should be fixed, not
+       dnl silenced. At least, for the most part. -Wswitch-enum really does
+       dnl seem pretty dumb.
+       [-Wno-incompatible-pointer-types -Wno-empty-body -Wno-unused-function -Wno-unused-variable 
-Wno-old-style-definition -Wno-shadow -Wno-format-nonliteral -Wno-deprecated-declarations -Wno-switch-enum 
-Wno-switch-default -Wno-redundant-decls -Wno-switch-default -Wno-discarded-qualifiers -Wno-sign-compare])
 
 AC_PROG_CC
 


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