GCC Warnings are only activated in maintainer-mode. They have been moved some lines down to not disturb feature checking (when CFLAGS="-Werror").

This commit is contained in:
Roland Illig 2004-08-17 08:53:30 +00:00
parent c71b24708a
commit 64aad2cda5
2 changed files with 13 additions and 7 deletions

View File

@ -1,3 +1,8 @@
2004-08-17 Roland Illig <roland.illig@gmx.de>
* configure.ac: The GCC warning flags are only used in
maintainer-mode.
2004-08-17 Pavel S. Shirshov <pavelsh@mail.ru>
* lib/cedit.menu: Security fix patch. Fix insecure temporary file and

View File

@ -133,13 +133,6 @@ for h_lang in $ALL_DOC_LINGUAS; do
done
AC_SUBST(DOC_LINGUAS)
dnl
dnl Enforce coding standards
dnl
if test "x$GCC" = xyes; then
CFLAGS="$CFLAGS -Wall"
fi
dnl
dnl OS specific flags.
dnl
@ -550,6 +543,14 @@ if test "$GLIBC21" != yes; then
AC_DEFINE(USE_INCLUDED_REGEX, 1, [Use the regex included here])
fi
dnl
dnl Enforce coding standards
dnl
if test "x$GCC" = xyes -a x"$USE_MAINTAINER_MODE" = x"yes"; then
dnl Prepend the flags to keep them user-overridable
CFLAGS="-Wall -W -Wstrict-prototypes -Wno-unused-parameter $CFLAGS"
fi
AC_SUBST(CFLAGS)
AC_SUBST(CPPFLAGS)
AC_SUBST(LDFLAGS)