Module Name:    src
Committed By:   mrg
Date:           Sun Oct 13 10:12:14 UTC 2019

Modified Files:
        src/share/mk: bsd.own.mk

Log Message:
make GCC_NO_STRINGOP_OVERFLOW apply to gcc 7 too.


To generate a diff of this commit:
cvs rdiff -u -r1.1155 -r1.1156 src/share/mk/bsd.own.mk

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

Modified files:

Index: src/share/mk/bsd.own.mk
diff -u src/share/mk/bsd.own.mk:1.1155 src/share/mk/bsd.own.mk:1.1156
--- src/share/mk/bsd.own.mk:1.1155	Sun Oct 13 07:28:13 2019
+++ src/share/mk/bsd.own.mk	Sun Oct 13 10:12:13 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.own.mk,v 1.1155 2019/10/13 07:28:13 mrg Exp $
+#	$NetBSD: bsd.own.mk,v 1.1156 2019/10/13 10:12:13 mrg Exp $
 
 # This needs to be before bsd.init.mk
 .if defined(BSD_MK_COMPAT_FILE)
@@ -810,8 +810,8 @@ NOPROFILE=	# defined
 # COPTS.foo.c+= ${GCC_NO_STRINGOP_TRUNCATION}.
 #
 GCC_NO_FORMAT_TRUNCATION=	${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 7:? -Wno-format-truncation :}
+GCC_NO_STRINGOP_OVERFLOW=	${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 7:? -Wno-stringop-overflow :}
 GCC_NO_STRINGOP_TRUNCATION=	${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 8:? -Wno-stringop-truncation :}
-GCC_NO_STRINGOP_OVERFLOW=	${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 8:? -Wno-stringop-overflow :}
 GCC_NO_CAST_FUNCTION_TYPE=	${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 8:? -Wno-cast-function-type :}
 
 #

Reply via email to