Module Name: src
Committed By: fox
Date: Sat Feb 8 00:59:55 UTC 2020
Modified Files:
src/games/hack: Makefile
Log Message:
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@
To generate a diff of this commit:
cvs rdiff -u -r1.46 -r1.47 src/games/hack/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/games/hack/Makefile
diff -u src/games/hack/Makefile:1.46 src/games/hack/Makefile:1.47
--- src/games/hack/Makefile:1.46 Sun Oct 13 07:28:09 2019
+++ src/games/hack/Makefile Sat Feb 8 00:59:55 2020
@@ -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 @@ hack.h: hack.onames.h
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