1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00
freebsd/crypto/heimdal/cf/wflags.m4

29 lines
789 B
Plaintext
Raw Normal View History

2008-05-07 13:39:42 +00:00
dnl $Id: wflags.m4 21183 2007-06-20 03:07:07Z lha $
dnl
dnl set WFLAGS
2008-05-07 13:39:42 +00:00
AC_DEFUN([rk_WFLAGS],[
AC_ARG_ENABLE(developer,
AS_HELP_STRING([--enable-developer], [enable developer warnings]))
if test "X$enable_developer" = Xyes; then
dwflags="-Werror"
fi
WFLAGS_NOUNUSED=""
WFLAGS_NOIMPLICITINT=""
if test -z "$WFLAGS" -a "$GCC" = "yes"; then
# -Wno-implicit-int for broken X11 headers
# leave these out for now:
# -Wcast-align doesn't work well on alpha osf/1
# -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
# -Wmissing-declarations -Wnested-externs
2008-05-07 13:39:42 +00:00
WFLAGS="ifelse($#, 0,-Wall, $1) $dwflags"
WFLAGS_NOUNUSED="-Wno-unused"
WFLAGS_NOIMPLICITINT="-Wno-implicit-int"
fi
AC_SUBST(WFLAGS)dnl
AC_SUBST(WFLAGS_NOUNUSED)dnl
AC_SUBST(WFLAGS_NOIMPLICITINT)dnl
])