[epiphany] configure.ac: we can safely assume GCC 3.4 these days, I think
- From: Xan Lopez <xan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] configure.ac: we can safely assume GCC 3.4 these days, I think
- Date: Sat, 10 Dec 2011 12:59:15 +0000 (UTC)
commit 92e9105cd42c298bf0c8b2bf6aca89b6e59f913d
Author: Xan Lopez <xan igalia com>
Date: Sat Dec 10 13:18:53 2011 +0100
configure.ac: we can safely assume GCC 3.4 these days, I think
configure.ac | 26 +-------------------------
1 files changed, 1 insertions(+), 25 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 06951c3..7898752 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
# ***************
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]