mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 04:22:34 +03:00
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:
parent
c71b24708a
commit
64aad2cda5
@ -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>
|
2004-08-17 Pavel S. Shirshov <pavelsh@mail.ru>
|
||||||
|
|
||||||
* lib/cedit.menu: Security fix patch. Fix insecure temporary file and
|
* lib/cedit.menu: Security fix patch. Fix insecure temporary file and
|
||||||
|
15
configure.ac
15
configure.ac
@ -133,13 +133,6 @@ for h_lang in $ALL_DOC_LINGUAS; do
|
|||||||
done
|
done
|
||||||
AC_SUBST(DOC_LINGUAS)
|
AC_SUBST(DOC_LINGUAS)
|
||||||
|
|
||||||
dnl
|
|
||||||
dnl Enforce coding standards
|
|
||||||
dnl
|
|
||||||
if test "x$GCC" = xyes; then
|
|
||||||
CFLAGS="$CFLAGS -Wall"
|
|
||||||
fi
|
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl OS specific flags.
|
dnl OS specific flags.
|
||||||
dnl
|
dnl
|
||||||
@ -550,6 +543,14 @@ if test "$GLIBC21" != yes; then
|
|||||||
AC_DEFINE(USE_INCLUDED_REGEX, 1, [Use the regex included here])
|
AC_DEFINE(USE_INCLUDED_REGEX, 1, [Use the regex included here])
|
||||||
fi
|
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(CFLAGS)
|
||||||
AC_SUBST(CPPFLAGS)
|
AC_SUBST(CPPFLAGS)
|
||||||
AC_SUBST(LDFLAGS)
|
AC_SUBST(LDFLAGS)
|
||||||
|
Loading…
Reference in New Issue
Block a user