Module Name: src
Committed By: mrg
Date: Sat Mar 7 00:53:25 UTC 2020
Modified Files:
src/sys/conf: copts.mk
Log Message:
XXX:
turn off -Wunused-but-set-variable for mips' linux_machdep.c and GCC 8.
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 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/copts.mk
diff -u src/sys/conf/copts.mk:1.4 src/sys/conf/copts.mk:1.5
--- src/sys/conf/copts.mk:1.4 Mon Sep 30 00:06:02 2019
+++ src/sys/conf/copts.mk Sat Mar 7 00:53:24 2020
@@ -1,4 +1,4 @@
-# $NetBSD: copts.mk,v 1.4 2019/09/30 00:06:02 mrg Exp $
+# $NetBSD: copts.mk,v 1.5 2020/03/07 00:53:24 mrg Exp $
# MI per-file compiler options required.
@@ -12,4 +12,9 @@ COPTS.radeon_cs.c+= -Wno-error=implicit-
COPTS.via_dmablit.c+= -Wno-error=implicit-fallthrough
.endif
+.if defined(HAVE_GCC) && ${HAVE_GCC} >= 8 && ${ACTIVE_CC} == "gcc" && \
+ (${MACHINE_ARCH} == "mipseb" || ${MACHINE_ARCH} == "mipsel")
+COPTS.linux_machdep.c+= -Wno-error=unused-but-set-variable
+.endif
+
.endif