mirror of https://github.com/GNOME/gimp.git
add -Wdeclaration_after_statement to the CFLAGS if the compiler supports
2006-08-24 Sven Neumann <sven@gimp.org> * configure.in: add -Wdeclaration_after_statement to the CFLAGS if the compiler supports this flag.
This commit is contained in:
parent
decefcb483
commit
d864da4a4f
12
configure.in
12
configure.in
|
@ -158,6 +158,9 @@ AM_PROG_AS
|
||||||
dnl Initialize maintainer mode
|
dnl Initialize maintainer mode
|
||||||
AM_MAINTAINER_MODE
|
AM_MAINTAINER_MODE
|
||||||
|
|
||||||
|
dnl Honor aclocal flags
|
||||||
|
ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
|
||||||
|
|
||||||
|
|
||||||
###########################
|
###########################
|
||||||
# Check target architecture
|
# Check target architecture
|
||||||
|
@ -240,6 +243,7 @@ AM_CONDITIONAL(HAVE_WINDRES, test "x$WINDRES" != "x:")
|
||||||
|
|
||||||
AC_SUBST(WINDRES)
|
AC_SUBST(WINDRES)
|
||||||
|
|
||||||
|
|
||||||
###############
|
###############
|
||||||
# Generic stuff
|
# Generic stuff
|
||||||
###############
|
###############
|
||||||
|
@ -306,6 +310,11 @@ if eval "test x$GCC = xyes"; then
|
||||||
fi
|
fi
|
||||||
changequote([,])dnl
|
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
|
# Ensure MSVC-compatible struct packing convention is used when
|
||||||
# compiling for Win32 with gcc.
|
# compiling for Win32 with gcc.
|
||||||
# What flag to depends on gcc version: gcc3 uses "-mms-bitfields", while
|
# 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
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Honor aclocal flags
|
|
||||||
ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
|
|
||||||
|
|
||||||
|
|
||||||
AC_HEADER_DIRENT
|
AC_HEADER_DIRENT
|
||||||
AC_HEADER_STDC
|
AC_HEADER_STDC
|
||||||
|
|
Loading…
Reference in New Issue