From 55123235b45f981826ab0c3085f12013bed5d7ac Mon Sep 17 00:00:00 2001 From: fox Date: Sat, 8 Feb 2020 00:59:55 +0000 Subject: 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@ --- hack/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hack/Makefile b/hack/Makefile index 97a9a5b0..ec9a6521 100644 --- a/hack/Makefile +++ b/hack/Makefile @@ -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 @@ -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 -- cgit v1.2.3-56-ge451