diff options
author | Xan Lopez <xan@igalia.com> | 2011-12-10 20:18:53 +0800 |
---|---|---|
committer | Xan Lopez <xan@igalia.com> | 2011-12-10 20:18:53 +0800 |
commit | 92e9105cd42c298bf0c8b2bf6aca89b6e59f913d (patch) | |
tree | 3e08e526c932786e6759524e0ae06f31709eecb7 | |
parent | 7c8add0f5a81cee4b04c64360102e723c5405f76 (diff) | |
download | gsoc2013-epiphany-92e9105cd42c298bf0c8b2bf6aca89b6e59f913d.tar gsoc2013-epiphany-92e9105cd42c298bf0c8b2bf6aca89b6e59f913d.tar.gz gsoc2013-epiphany-92e9105cd42c298bf0c8b2bf6aca89b6e59f913d.tar.bz2 gsoc2013-epiphany-92e9105cd42c298bf0c8b2bf6aca89b6e59f913d.tar.lz gsoc2013-epiphany-92e9105cd42c298bf0c8b2bf6aca89b6e59f913d.tar.xz gsoc2013-epiphany-92e9105cd42c298bf0c8b2bf6aca89b6e59f913d.tar.zst gsoc2013-epiphany-92e9105cd42c298bf0c8b2bf6aca89b6e59f913d.zip |
configure.ac: we can safely assume GCC 3.4 these days, I think
-rw-r--r-- | configure.ac | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/configure.ac b/configure.ac index 06951c373..789875295 100644 --- a/configure.ac +++ b/configure.ac @@ -74,7 +74,7 @@ GNOME_DEBUG_CHECK GNOME_COMPILE_WARNINGS([maximum]) GNOME_MAINTAINER_MODE_DEFINES -MORE_WARN_FLAGS= +MORE_WARN_FLAGS="-Wdeclaration-after-statement" DEPRECATION_FLAGS= if test "$enable_maintainer_mode" = "yes"; then @@ -135,30 +135,6 @@ AC_FUNC_MKTIME AC_FUNC_STRTOD AC_TYPE_SIZE_T -# Check for -Wdeclaration-after-statement (since gcc 3.4) - -if test "$enable_maintainer_mode" = "yes"; then - - AC_LANG_PUSH([C]) - _FLAGS="-Wdeclaration-after-statement" - _SAVE_CFLAGS=$CFLAGS - CFLAGS="$CFLAGS $_FLAGS" - - AC_CACHE_CHECK([for compiler $FLAGS option], - ac_cv_have_declaration_after_statement, - [AC_COMPILE_IFELSE( - [AC_LANG_SOURCE([[int main () { return 0; }]])], - [ac_cv_have_declaration_after_statement="yes"], - [ac_cv_have_declaration_after_statement="no"], - [ac_cv_have_declaration_after_statement="maybe"])]) - - if test "$ac_cv_have_declaration_after_statement" = "yes"; then - MORE_WARN_FLAGS="$MORE_WARN_FLAGS $_FLAGS" - fi - CFLAGS="$_SAVE_CFLAGS" - AC_LANG_POP([C]) -fi - # *************** # Multimedia keys # *************** |