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/nfs | |
| 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/nfs')
| -rw-r--r-- | sys/modules/nfs/Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/modules/nfs/Makefile b/sys/modules/nfs/Makefile index 4b147e4da8e..428f8d69093 100644 --- a/sys/modules/nfs/Makefile +++ b/sys/modules/nfs/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 2010/03/02 23:37:16 pooka Exp $ +# $NetBSD: Makefile,v 1.3 2019/02/17 04:05:55 rin Exp $ .include "../Makefile.inc" @@ -13,4 +13,6 @@ SRCS+= nfs_socket.c nfs_subs.c nfs_iod.c nfs_vnops.c SRCS+= nfs_vfsops.c nfs_bootdhcp.c nfs_bootparam.c SRCS+= nfs_clntsocket.c nfs_clntsubs.c +WARNS= 3 + .include <bsd.kmodule.mk> |
