From d864da4a4f3dc9527c8ffec13d05b743c90e9811 Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Thu, 24 Aug 2006 13:01:12 +0000 Subject: [PATCH] add -Wdeclaration_after_statement to the CFLAGS if the compiler supports 2006-08-24 Sven Neumann * configure.in: add -Wdeclaration_after_statement to the CFLAGS if the compiler supports this flag. --- configure.in | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/configure.in b/configure.in index 9a4b459051..9bc76499ac 100644 --- a/configure.in +++ b/configure.in @@ -158,6 +158,9 @@ AM_PROG_AS dnl Initialize maintainer mode AM_MAINTAINER_MODE +dnl Honor aclocal flags +ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS" + ########################### # Check target architecture @@ -240,6 +243,7 @@ AM_CONDITIONAL(HAVE_WINDRES, test "x$WINDRES" != "x:") AC_SUBST(WINDRES) + ############### # Generic stuff ############### @@ -306,6 +310,11 @@ if eval "test x$GCC = xyes"; then fi changequote([,])dnl +# If possible, warn if C99isms are used +GIMP_DETECT_CFLAGS(extra_warnings, '-Wdeclaration-after-statement') +CFLAGS="$CFLAGS $extra_warnings" + + # Ensure MSVC-compatible struct packing convention is used when # compiling for Win32 with gcc. # What flag to depends on gcc version: gcc3 uses "-mms-bitfields", while @@ -341,9 +350,6 @@ if test x"$os_win32" = xyes; then fi fi -# Honor aclocal flags -ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS" - AC_HEADER_DIRENT AC_HEADER_STDC