Files
heimdal/cf/wflags.m4
Johan Danielsson e5f97cf0de AC_WFLAGS
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5487 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-03-10 18:29:19 +00:00

22 lines
584 B
Plaintext

dnl $Id$
dnl
dnl set WFLAGS
AC_DEFUN(AC_WFLAGS,[
WFLAGS_NOUNUSED=""
WFLAGS_NORETURNTYPE=""
if test -z "$WFLAGS" -a "$GCC" = "yes"; then
# -Wno-return-type 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
WFLAGS="ifelse($#, 0,-Wall -Wno-return-type, $1)"
WFLAGS_NOUNUSED="-Wno-unused"
WFLAGS_NORETURNTYPE="-Wno-return-type"
fi
AC_SUBST(WFLAGS)dnl
AC_SUBST(WFLAGS_NOUNUSED)dnl
AC_SUBST(WFLAGS_NORETURNTYPE)dnl
])