summaryrefslogtreecommitdiffstats
path: root/crypto/heimdal/cf/wflags.m4
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/heimdal/cf/wflags.m4')
-rw-r--r--crypto/heimdal/cf/wflags.m413
1 files changed, 10 insertions, 3 deletions
diff --git a/crypto/heimdal/cf/wflags.m4 b/crypto/heimdal/cf/wflags.m4
index 4051f29..d099151 100644
--- a/crypto/heimdal/cf/wflags.m4
+++ b/crypto/heimdal/cf/wflags.m4
@@ -1,8 +1,15 @@
-dnl $Id: wflags.m4,v 1.3.34.1 2004/04/01 07:27:35 joda Exp $
+dnl $Id: wflags.m4 21183 2007-06-20 03:07:07Z lha $
dnl
dnl set WFLAGS
-AC_DEFUN([AC_WFLAGS],[
+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
@@ -11,7 +18,7 @@ if test -z "$WFLAGS" -a "$GCC" = "yes"; then
# -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, $1)"
+ WFLAGS="ifelse($#, 0,-Wall, $1) $dwflags"
WFLAGS_NOUNUSED="-Wno-unused"
WFLAGS_NOIMPLICITINT="-Wno-implicit-int"
fi
OpenPOWER on IntegriCloud