NetBSD/sys/modules/nfsserver/Makefile
rin 2bc4fb1fcb 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.
2019-02-17 04:05:41 +00:00

17 lines
278 B
Makefile

# $NetBSD: Makefile,v 1.3 2019/02/17 04:05:55 rin Exp $
.include "../Makefile.inc"
KMOD= nfsserver
CPPFLAGS+= -DNFSSERVER
.PATH: ${S}/nfs
SRCS+= nfs_export.c nfs_serv.c nfs_srvcache.c
SRCS+= nfs_srvsubs.c nfs_srvsocket.c nfs_syscalls.c
WARNS= 3
.include <bsd.kmodule.mk>