aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorXan Lopez <xan@igalia.com>2011-12-10 20:18:53 +0800
committerXan Lopez <xan@igalia.com>2011-12-10 20:18:53 +0800
commit92e9105cd42c298bf0c8b2bf6aca89b6e59f913d (patch)
tree3e08e526c932786e6759524e0ae06f31709eecb7 /configure.ac
parent7c8add0f5a81cee4b04c64360102e723c5405f76 (diff)
downloadgsoc2013-epiphany-92e9105cd42c298bf0c8b2bf6aca89b6e59f913d.tar.gz
gsoc2013-epiphany-92e9105cd42c298bf0c8b2bf6aca89b6e59f913d.tar.zst
gsoc2013-epiphany-92e9105cd42c298bf0c8b2bf6aca89b6e59f913d.zip
configure.ac: we can safely assume GCC 3.4 these days, I think
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac26
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
# ***************