diff options
author | fox <fox@NetBSD.org> | 2020-02-08 00:59:55 +0000 |
---|---|---|
committer | fox <fox@NetBSD.org> | 2020-02-08 00:59:55 +0000 |
commit | 55123235b45f981826ab0c3085f12013bed5d7ac (patch) | |
tree | fada014e9bff2354cf09b5a41ee6c6a8dfc4f60c /hack | |
parent | 82ea27e3520822ac62ab58316392af4c742bfcbe (diff) | |
download | bsdgames-darwin-55123235b45f981826ab0c3085f12013bed5d7ac.tar.gz bsdgames-darwin-55123235b45f981826ab0c3085f12013bed5d7ac.tar.zst bsdgames-darwin-55123235b45f981826ab0c3085f12013bed5d7ac.zip |
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 (limited to 'hack')
-rw-r--r-- | hack/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
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 <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 |