PageRenderTime 17ms CodeModel.GetById 14ms app.highlight 0ms RepoModel.GetById 2ms app.codeStats 0ms

/crypto/heimdal/cf/wflags.m4

https://bitbucket.org/freebsd/freebsd-head/
m4 | 28 lines | 20 code | 3 blank | 5 comment | 0 complexity | 984b402faf9f710b93060c0c1d0e683c MD5 | raw file
 1dnl $Id: wflags.m4 21183 2007-06-20 03:07:07Z lha $
 2dnl
 3dnl set WFLAGS
 4
 5AC_DEFUN([rk_WFLAGS],[
 6
 7AC_ARG_ENABLE(developer, 
 8	AS_HELP_STRING([--enable-developer], [enable developer warnings]))
 9if test "X$enable_developer" = Xyes; then
10    dwflags="-Werror"
11fi
12
13WFLAGS_NOUNUSED=""
14WFLAGS_NOIMPLICITINT=""
15if test -z "$WFLAGS" -a "$GCC" = "yes"; then
16  # -Wno-implicit-int for broken X11 headers
17  # leave these out for now:
18  #   -Wcast-align doesn't work well on alpha osf/1
19  #   -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
20  #   -Wmissing-declarations -Wnested-externs
21  WFLAGS="ifelse($#, 0,-Wall, $1) $dwflags"
22  WFLAGS_NOUNUSED="-Wno-unused"
23  WFLAGS_NOIMPLICITINT="-Wno-implicit-int"
24fi
25AC_SUBST(WFLAGS)dnl
26AC_SUBST(WFLAGS_NOUNUSED)dnl
27AC_SUBST(WFLAGS_NOIMPLICITINT)dnl
28])