gui: Copy the -Wdeclaration-after-statement test from base. Also adds -Wall.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32879 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Eric Wasylishen 2011-04-17 21:38:38 +00:00
parent 8b3dc08245
commit e166bb2e52
3 changed files with 206 additions and 172 deletions

View file

@ -1,3 +1,8 @@
2011-04-17 Eric Wasylishen <ewasylishen@gmail.com>
* configure.ac: Copy the -Wdeclaration-after-statement test from
base. Also adds -Wall.
2011-04-14 Adam Fedor <fedor@gnu.org>
* Version: Bumb version.

353
configure vendored

File diff suppressed because it is too large Load diff

View file

@ -459,6 +459,26 @@ AC_SUBST(GSCUPS_LIBS)
AC_SUBST(GSCUPS_DATADIR)
AC_SUBST(BUILD_GSCUPS)
#--------------------------------------------------------------------
# Check for -Wdeclaration-after-statement
#--------------------------------------------------------------------
AC_MSG_CHECKING(whether the compiler supports -Wdeclaration-after-statement)
saved_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -Wdeclaration-after-statement"
AC_COMPILE_IFELSE([AC_LANG_PROGRAM()],HAS_W_DECL_AFTER_STATEMENT=yes,HAS_W_DECL_AFTER_STATEMENT=no)
CFLAGS="$saved_CFLAGS"
AC_MSG_RESULT($HAS_W_DECL_AFTER_STATEMENT)
if test x"$HAS_W_DECL_AFTER_STATEMENT" = x"yes"; then
WARN_FLAGS="-Wall -Wdeclaration-after-statement"
else
WARN_FLAGS=-Wall
fi
AC_SUBST(WARN_FLAGS)
#--------------------------------------------------------------------
# Record the version
#--------------------------------------------------------------------