summaryrefslogtreecommitdiff
path: root/sys/modules
diff options
context:
space:
mode:
authorrin <rin@NetBSD.org>2019-02-17 03:57:31 +0000
committerrin <rin@NetBSD.org>2019-02-17 03:57:31 +0000
commitc202a4d1ef6f0c152ce8ea00879c0f6b57bf6eec (patch)
tree209c6462d0ea18afad48f7f4a1317446f0f3fa51 /sys/modules
parentada6ecd502d6eedc58d27fcd0a776099c3b7f7cb (diff)
Turn on DIAGNOSTIC by default for modules in HEAD.
Make us sure that it should be commented out for release branches in a similar manner to kernel configuration files. Discussed on tech-kern.
Diffstat (limited to 'sys/modules')
-rw-r--r--sys/modules/Makefile.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/modules/Makefile.inc b/sys/modules/Makefile.inc
index 0c9569857a7..cfb6f422940 100644
--- a/sys/modules/Makefile.inc
+++ b/sys/modules/Makefile.inc
@@ -1,10 +1,14 @@
-# $NetBSD: Makefile.inc,v 1.6 2011/09/11 18:38:02 mbalmer Exp $
+# $NetBSD: Makefile.inc,v 1.7 2019/02/17 03:57:31 rin Exp $
S!= cd ${.PARSEDIR}/..;pwd
CPPFLAGS+= -I${NETBSDSRCDIR}/common/include
USE_FORT= no
WARNS?= 3
+# inexpensive kernel consistency checks
+# XXX to be commented out on release branch
+CPPFLAGS+= -DDIAGNOSTIC
+
.if !empty(IOCONF)
_BSD_IOCONF_MK_USER_=1
.include <bsd.ioconf.mk>