Module Name:    src
Committed By:   mrg
Date:           Thu Feb  7 06:01:04 UTC 2019

Modified Files:
        src/usr.sbin/memswitch: Makefile

Log Message:
disable stringop-overflow warning for GCC 7.  triggers here and seems
impossible on current netbsd given it's takling about argv > 2GB, and
this is only for x68k anyway.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 src/usr.sbin/memswitch/Makefile

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

Modified files:

Index: src/usr.sbin/memswitch/Makefile
diff -u src/usr.sbin/memswitch/Makefile:1.1.1.1 src/usr.sbin/memswitch/Makefile:1.2
--- src/usr.sbin/memswitch/Makefile:1.1.1.1	Mon Jun 21 15:56:03 1999
+++ src/usr.sbin/memswitch/Makefile	Thu Feb  7 06:01:04 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.1.1.1 1999/06/21 15:56:03 minoura Exp $
+#	$NetBSD: Makefile,v 1.2 2019/02/07 06:01:04 mrg Exp $
 
 .if ${MACHINE} == "x68k"
 PROG=	memswitch
@@ -8,4 +8,11 @@ SRCS=	memswitch.c properties.c methods.c
 MAN=	memswitch.8
 MANSUBDIR=	/x68k
 
+.include <bsd.own.mk>
+
+# XXX Not sure how to fix this problem
+.if defined(HAVE_GCC) && ${HAVE_GCC} == 7 && ${ACTIVE_CC} == "gcc"
+COPTS.memswitch.c+=	-Wno-error=stringop-overflow
+.endif
+
 .include <bsd.prog.mk>

Reply via email to