Source-Changes-HG archive

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

[src/trunk]: src/share/mk make GCC_NO_STRINGOP_OVERFLOW apply to gcc 7 too.



details:   https://anonhg.NetBSD.org/src/rev/aaae0a0bf1b7
branches:  trunk
changeset: 455296:aaae0a0bf1b7
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sun Oct 13 10:12:13 2019 +0000

description:
make GCC_NO_STRINGOP_OVERFLOW apply to gcc 7 too.

diffstat:

 share/mk/bsd.own.mk |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r ced9a93b9fcc -r aaae0a0bf1b7 share/mk/bsd.own.mk
--- a/share/mk/bsd.own.mk       Sun Oct 13 10:07:27 2019 +0000
+++ b/share/mk/bsd.own.mk       Sun Oct 13 10:12:13 2019 +0000
@@ -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 @@
 # 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 :}
 
 #



Home | Main Index | Thread Index | Old Index