Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/conf pass -Wno-error=implicit-fallthrough for zlib.c.



details:   https://anonhg.NetBSD.org/src/rev/a612f6ed020c
branches:  trunk
changeset: 448563:a612f6ed020c
user:      mrg <mrg%NetBSD.org@localhost>
date:      Tue Feb 05 08:33:25 2019 +0000

description:
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.

diffstat:

 sys/conf/Makefile.kern.inc |   3 ++-
 sys/conf/copts.mk          |  10 ++++++++++
 2 files changed, 12 insertions(+), 1 deletions(-)

diffs (31 lines):

diff -r ac10484943c8 -r a612f6ed020c sys/conf/Makefile.kern.inc
--- a/sys/conf/Makefile.kern.inc        Tue Feb 05 08:08:59 2019 +0000
+++ b/sys/conf/Makefile.kern.inc        Tue Feb 05 08:33:25 2019 +0000
@@ -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 @@
 .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,
diff -r ac10484943c8 -r a612f6ed020c sys/conf/copts.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/conf/copts.mk Tue Feb 05 08:33:25 2019 +0000
@@ -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



Home | Main Index | Thread Index | Old Index