summaryrefslogtreecommitdiff
path: root/sys/modules/dtrace/linux_syscall
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/dtrace/linux_syscall
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/dtrace/linux_syscall')
-rw-r--r--sys/modules/dtrace/linux_syscall/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/modules/dtrace/linux_syscall/Makefile b/sys/modules/dtrace/linux_syscall/Makefile
index 56ea835e82f..42adcca170b 100644
--- a/sys/modules/dtrace/linux_syscall/Makefile
+++ b/sys/modules/dtrace/linux_syscall/Makefile
@@ -11,6 +11,8 @@ CPPFLAGS+= -I${NETBSDSRCDIR}/external/cddl/osnet/sys \
-I${NETBSDSRCDIR}/external/cddl/osnet/dist/uts/common \
-I${NETBSDSRCDIR}/external/cddl/osnet/dev/dtrace
+WARNS= 4
+
CPPFLAGS+= -Wno-unknown-pragmas
CPPFLAGS+= ${${ACTIVE_CC} == "gcc" :? -Wno-discarded-qualifiers :}