Sat Mar 7 00:53:25 2020 UTC ()
XXX:

turn off -Wunused-but-set-variable for mips' linux_machdep.c and GCC 8.


(mrg)
diff -r1.4 -r1.5 src/sys/conf/copts.mk

cvs diff -r1.4 -r1.5 src/sys/conf/copts.mk (expand / switch to unified diff)

--- src/sys/conf/copts.mk 2019/09/30 00:06:02 1.4
+++ src/sys/conf/copts.mk 2020/03/07 00:53:24 1.5
@@ -1,15 +1,20 @@ @@ -1,15 +1,20 @@
1# $NetBSD: copts.mk,v 1.4 2019/09/30 00:06:02 mrg Exp $ 1# $NetBSD: copts.mk,v 1.5 2020/03/07 00:53:24 mrg Exp $
2 2
3# MI per-file compiler options required. 3# MI per-file compiler options required.
4 4
5.ifndef _SYS_CONF_COPTS_MK_ 5.ifndef _SYS_CONF_COPTS_MK_
6_SYS_CONF_COPTS_MK_=1 6_SYS_CONF_COPTS_MK_=1
7 7
8.if defined(HAVE_GCC) && ${HAVE_GCC} >= 7 && ${ACTIVE_CC} == "gcc" 8.if defined(HAVE_GCC) && ${HAVE_GCC} >= 7 && ${ACTIVE_CC} == "gcc"
9COPTS.zlib.c+= -Wno-error=implicit-fallthrough 9COPTS.zlib.c+= -Wno-error=implicit-fallthrough
10COPTS.pf.c+= -Wno-error=implicit-fallthrough 10COPTS.pf.c+= -Wno-error=implicit-fallthrough
11COPTS.radeon_cs.c+= -Wno-error=implicit-fallthrough 11COPTS.radeon_cs.c+= -Wno-error=implicit-fallthrough
12COPTS.via_dmablit.c+= -Wno-error=implicit-fallthrough 12COPTS.via_dmablit.c+= -Wno-error=implicit-fallthrough
13.endif 13.endif
14 14
 15.if defined(HAVE_GCC) && ${HAVE_GCC} >= 8 && ${ACTIVE_CC} == "gcc" && \
 16 (${MACHINE_ARCH} == "mipseb" || ${MACHINE_ARCH} == "mipsel")
 17COPTS.linux_machdep.c+= -Wno-error=unused-but-set-variable
 18.endif
 19
15.endif 20.endif