diff options
| author | rin <rin@NetBSD.org> | 2019-02-17 04:05:41 +0000 |
|---|---|---|
| committer | rin <rin@NetBSD.org> | 2019-02-17 04:05:41 +0000 |
| commit | 71bfb4ceb853656d03c84316497d998489ddad4c (patch) | |
| tree | b34dfe77bcfc836f168712df194158df9429fa53 /sys/modules/compat_50 | |
| parent | c202a4d1ef6f0c152ce8ea00879c0f6b57bf6eec (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/compat_50')
| -rw-r--r-- | sys/modules/compat_50/Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/modules/compat_50/Makefile b/sys/modules/compat_50/Makefile index e756dbe67cd..0e6a3aecac6 100644 --- a/sys/modules/compat_50/Makefile +++ b/sys/modules/compat_50/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 2019/01/27 02:08:45 pgoyette Exp $ +# $NetBSD: Makefile,v 1.3 2019/02/17 04:05:45 rin Exp $ .include "../Makefile.inc" @@ -31,4 +31,6 @@ SRCS+= wsevent_50.c SRCS+= vnd_50.c +WARNS= 3 + .include <bsd.kmodule.mk> |
