CVE-2023-4154 dsdb/tests: Speed up DirSync test by only checking positive matches...
[Samba.git] / third_party / heimdal / cf / wflags.m4
blobbc128bce792c6393c89fcc0ec4d6fd68439ab830
1 dnl $Id$
2 dnl
3 dnl set WFLAGS
5 AC_DEFUN([rk_WFLAGS],[
7 AC_ARG_ENABLE(developer, 
8         AS_HELP_STRING([--enable-developer], [enable developer warnings]))
9 if test "X$enable_developer" = Xyes; then
10     dwflags="-Werror"
12 AM_CONDITIONAL(DEVELOPER_MODE, test "X$enable_developer" = Xyes)
14 WFLAGS_NOUNUSED=""
15 if test -z "$WFLAGS" -a "$GCC" = "yes"; then
16   # leave these out for now:
17   #   -Wcast-align doesn't work well on alpha osf/1
18   #   -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
19   #   -Wmissing-declarations -Wnested-externs
20   #   -Wstrict-overflow=5
21   WFLAGS="ifelse($#, 0,-Wall, $1) $dwflags"
23   #
24   # WFLAGS_LITE can be appended to WFLAGS to turn off a host of warnings
25   # that fail for various bits of older code in appl/.  Let's not use it
26   # for the main libraries, though.
27   WFLAGS_LITE="-Wno-extra -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-shadow"
28   # -Wno-unused-result (not supported on gcc-4.2)
31 AC_SUBST(WFLAGS)dnl
32 AC_SUBST(WFLAGS_LITE)dnl