Module Name:    src
Committed By:   mrg
Date:           Tue Feb  5 08:33:25 UTC 2019

Modified Files:
        src/sys/conf: Makefile.kern.inc
Added Files:
        src/sys/conf: copts.mk

Log Message:
pass -Wno-error=implicit-fallthrough for zlib.c.

XXX: consider using copts.mk for various warning/copt flags passed
in kernel builds currently set via 'makeoptions' in files.* files.
this is suboptimal, as those all get embedded into the kernel with
config_file.h.


To generate a diff of this commit:
cvs rdiff -u -r1.267 -r1.268 src/sys/conf/Makefile.kern.inc
cvs rdiff -u -r0 -r1.1 src/sys/conf/copts.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/conf/Makefile.kern.inc
diff -u src/sys/conf/Makefile.kern.inc:1.267 src/sys/conf/Makefile.kern.inc:1.268
--- src/sys/conf/Makefile.kern.inc:1.267	Sun Jan 27 02:08:41 2019
+++ src/sys/conf/Makefile.kern.inc	Tue Feb  5 08:33:25 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.kern.inc,v 1.267 2019/01/27 02:08:41 pgoyette Exp $
+#	$NetBSD: Makefile.kern.inc,v 1.268 2019/02/05 08:33:25 mrg Exp $
 #
 # This file contains common `MI' targets and definitions and it is included
 # at the bottom of each `MD' ${MACHINE}/conf/Makefile.${MACHINE}.
@@ -317,6 +317,7 @@ ${_s:T:R}.o: ${_s}
 .if "${_SKIP_DTS}" != "yes"
 .include "${S}/conf/dts.mk"
 .endif
+.include "${S}/conf/copts.mk"
 
 ##
 ## (7) misc targets: install, clean(dir), depend(all), lint, links, tags,

Added files:

Index: src/sys/conf/copts.mk
diff -u /dev/null src/sys/conf/copts.mk:1.1
--- /dev/null	Tue Feb  5 08:33:26 2019
+++ src/sys/conf/copts.mk	Tue Feb  5 08:33:25 2019
@@ -0,0 +1,10 @@
+#	$NetBSD: copts.mk,v 1.1 2019/02/05 08:33:25 mrg Exp $
+
+# MI per-file compiler options required.
+
+.ifndef _SYS_CONF_COPTS_MK_
+_SYS_CONF_COPTS_MK_=1
+
+COPTS.zlib.c+=	-Wno-error=implicit-fallthrough
+
+.endif

Reply via email to