From 34b5fff1b8d58f2ddaa89336354958daf8506b15 Mon Sep 17 00:00:00 2001 From: christos Date: Tue, 16 Aug 2011 09:26:22 +0000 Subject: - document non-literal format strings - avoid strict aliasing violations, but adding an intermediate function. --- hack/Makefile | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'hack/Makefile') 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 @@ -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 - -# XXX -.if ${HAVE_GCC} == 45 -COPTS.hack.vault.c+= -fno-strict-aliasing -.endif -- cgit v1.2.3-56-ge451