summaryrefslogtreecommitdiff
path: root/sys/modules/cgd
diff options
context:
space:
mode:
authorrin <rin@NetBSD.org>2019-02-17 04:05:41 +0000
committerrin <rin@NetBSD.org>2019-02-17 04:05:41 +0000
commit71bfb4ceb853656d03c84316497d998489ddad4c (patch)
treeb34dfe77bcfc836f168712df194158df9429fa53 /sys/modules/cgd
parentc202a4d1ef6f0c152ce8ea00879c0f6b57bf6eec (diff)
Bump default value of WARNS for modules from 3 to 5, and
explicitly set WARNS for modules that fail with WARNS=5. Also, turn on -Wno-missing-noreturn for clang for some files. At the moment, among ~ 360 modules, - 2 (lua and zfs) need WARNS=0 - 1 (solaris) needs WARNS=1 - 136 need WARNS=3 (mostly due to sign-compare) - 4 need WARNS=4 - others can be compiled with WARNS=5 Discussed on tech-kern.
Diffstat (limited to 'sys/modules/cgd')
-rw-r--r--sys/modules/cgd/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/modules/cgd/Makefile b/sys/modules/cgd/Makefile
index af709cdf5ee..1225c9c87a6 100644
--- a/sys/modules/cgd/Makefile
+++ b/sys/modules/cgd/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2015/08/20 11:05:00 christos Exp $
+# $NetBSD: Makefile,v 1.3 2019/02/17 04:05:44 rin Exp $
.include "../Makefile.inc"
@@ -8,4 +8,6 @@ KMOD= cgd
IOCONF= cgd.ioconf
SRCS= cgd.c cgd_crypto.c
+WARNS= 3
+
.include <bsd.kmodule.mk>