From 1c1ba33ca64072b043f1701ddb803288536560b5 Mon Sep 17 00:00:00 2001 From: mrg Date: Fri, 1 Jul 2011 02:42:10 +0000 Subject: [PATCH] apply some -Wno-strict-overflow for GCC >= 4.5 --- usr.sbin/zdump/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/usr.sbin/zdump/Makefile b/usr.sbin/zdump/Makefile index 22f06547f4b7..f728f9bf6b8d 100644 --- a/usr.sbin/zdump/Makefile +++ b/usr.sbin/zdump/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.5 2002/09/18 03:54:39 lukem Exp $ +# $NetBSD: Makefile,v 1.6 2011/07/01 02:42:10 mrg Exp $ .include @@ -8,3 +8,8 @@ MAN= zdump.8 .PATH: ${NETBSDSRCDIR}/lib/libc/time .include + +# XXX +.if defined(HAVE_GCC) && ${HAVE_GCC} >= 45 +COPTS.zdump.c+= -Wno-strict-overflow +.endif