Source-Changes-HG archive

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

[src/trunk]: src/sys/conf XXX:



details:   https://anonhg.NetBSD.org/src/rev/ada513070e83
branches:  trunk
changeset: 1007980:ada513070e83
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sat Mar 07 00:53:24 2020 +0000

description:
XXX:

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

diffstat:

 sys/conf/copts.mk |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r b414345f7251 -r ada513070e83 sys/conf/copts.mk
--- a/sys/conf/copts.mk Sat Mar 07 00:51:10 2020 +0000
+++ b/sys/conf/copts.mk Sat Mar 07 00:53:24 2020 +0000
@@ -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.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



Home | Main Index | Thread Index | Old Index