2bc4fb1fcb
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.
18 lines
364 B
Makefile
18 lines
364 B
Makefile
# $NetBSD: Makefile.inc,v 1.8 2019/02/17 04:05:41 rin Exp $
|
|
|
|
S!= cd ${.PARSEDIR}/..;pwd
|
|
CPPFLAGS+= -I${NETBSDSRCDIR}/common/include
|
|
USE_FORT= no
|
|
WARNS?= 5
|
|
|
|
# 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>
|
|
.endif
|
|
|
|
.include <bsd.own.mk>
|