From 92e9105cd42c298bf0c8b2bf6aca89b6e59f913d Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Sat, 10 Dec 2011 13:18:53 +0100 Subject: configure.ac: we can safely assume GCC 3.4 these days, I think --- configure.ac | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) (limited to 'configure.ac') 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 # *************** -- cgit