summaryrefslogtreecommitdiffstats
path: root/hack/Makefile
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2011-08-16 09:26:22 +0000
committerchristos <christos@NetBSD.org>2011-08-16 09:26:22 +0000
commit34b5fff1b8d58f2ddaa89336354958daf8506b15 (patch)
tree09ee1c30254128e6ebf641897fbf6815959369d4 /hack/Makefile
parent04539cb235b06fd8cacf5c4c40081bd86e0dfa04 (diff)
downloadbsdgames-darwin-34b5fff1b8d58f2ddaa89336354958daf8506b15.tar.gz
bsdgames-darwin-34b5fff1b8d58f2ddaa89336354958daf8506b15.tar.zst
bsdgames-darwin-34b5fff1b8d58f2ddaa89336354958daf8506b15.zip
- document non-literal format strings
- avoid strict aliasing violations, but adding an intermediate function.
Diffstat (limited to 'hack/Makefile')
-rw-r--r--hack/Makefile9
1 files changed, 3 insertions, 6 deletions
diff --git a/hack/Makefile b/hack/Makefile
index febefa23..9b3de2ce 100644
--- a/hack/Makefile
+++ b/hack/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.43 2011/06/22 02:49:43 mrg Exp $
+# $NetBSD: Makefile,v 1.44 2011/08/16 09:26:22 christos Exp $
# @(#)Makefile 8.2 (Berkeley) 4/27/95
.include <bsd.own.mk>
@@ -41,6 +41,8 @@ hack.h: hack.onames.h
COPTS.hack.bones.c+= -Wno-shadow
COPTS.hack.do.c+= -Wno-shadow
.endif
+COPTS.hack.mon.c+= -Wno-format-nonliteral
+COPTS.hack.rip.c+= -Wno-format-nonliteral
.if !exists(${DESTDIR}${FILESDIR}/perm)
afterinstall: clobber
@@ -57,8 +59,3 @@ clobber:
rm -f ${DESTDIR}/var/games/hackdir/bones*
.include <bsd.prog.mk>
-
-# XXX
-.if ${HAVE_GCC} == 45
-COPTS.hack.vault.c+= -fno-strict-aliasing
-.endif