Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/memswitch disable stringop-overflow warning for GCC...



details:   https://anonhg.NetBSD.org/src/rev/b111f0e8474e
branches:  trunk
changeset: 839109:b111f0e8474e
user:      mrg <mrg%NetBSD.org@localhost>
date:      Thu Feb 07 06:01:04 2019 +0000

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

diffstat:

 usr.sbin/memswitch/Makefile |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r f8faf13954b5 -r b111f0e8474e usr.sbin/memswitch/Makefile
--- a/usr.sbin/memswitch/Makefile       Thu Feb 07 05:28:38 2019 +0000
+++ b/usr.sbin/memswitch/Makefile       Thu Feb 07 06:01:04 2019 +0000
@@ -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 @@
 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>



Home | Main Index | Thread Index | Old Index