Source-Changes-HG archive

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

[src/trunk]: src/games/hack games/hack: Suppress -Werror=stringop-truncation ...



details:   https://anonhg.NetBSD.org/src/rev/ad421498e95e
branches:  trunk
changeset: 744613:ad421498e95e
user:      fox <fox%NetBSD.org@localhost>
date:      Sat Feb 08 00:59:55 2020 +0000

description:
games/hack: Suppress -Werror=stringop-truncation error.

Add GCC_NO_STRINGOP_TRUNCATION to hack.end.c to prevent build failure.

Error was reported when build.sh was run with MKLIBCSANITIZER=yes flag.

Reviewed by: kamil@

diffstat:

 games/hack/Makefile |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r 0026d868657d -r ad421498e95e games/hack/Makefile
--- a/games/hack/Makefile       Sat Feb 08 00:47:57 2020 +0000
+++ b/games/hack/Makefile       Sat Feb 08 00:59:55 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.46 2019/10/13 07:28:09 mrg Exp $
+#      $NetBSD: Makefile,v 1.47 2020/02/08 00:59:55 fox Exp $
 #      @(#)Makefile    8.2 (Berkeley) 4/27/95
 
 .include <bsd.own.mk>
@@ -39,6 +39,7 @@
 
 COPTS.hack.mon.c+=     -Wno-format-nonliteral
 COPTS.hack.rip.c+=     -Wno-format-nonliteral
+COPTS.hack.end.c+=     ${GCC_NO_STRINGOP_TRUNCATION}
 
 .if !exists(${DESTDIR}${FILESDIR}/perm)
 afterinstall: clobber



Home | Main Index | Thread Index | Old Index