From 47d652e3941675290517aa935adc0fbb432d6aa2 Mon Sep 17 00:00:00 2001 From: joerg Date: Mon, 24 Dec 2012 21:17:12 +0000 Subject: Disable return warning for Clang. --- x11/xscript/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'x11/xscript') diff --git a/x11/xscript/Makefile b/x11/xscript/Makefile index f4233cc064b..f29511d6f38 100644 --- a/x11/xscript/Makefile +++ b/x11/xscript/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.16 2012/10/29 05:07:20 asau Exp $ +# $NetBSD: Makefile,v 1.17 2012/12/24 21:17:12 joerg Exp $ # DISTNAME= xscript.tar @@ -16,6 +16,12 @@ COMMENT= X Window system script recording and playback WRKSRC= ${WRKDIR}/test-distrib/src USE_IMAKE= YES +.include "../../mk/compiler.mk" + +.if !empty(PKGSRC_COMPILER:Mclang) +MAKE_FLAGS+= CCOPTIONS=-Wno-error=return-type +.endif + .include "../../x11/libXext/buildlink3.mk" .include "../../x11/libX11/buildlink3.mk" .include "../../mk/bsd.pkg.mk" -- cgit v1.2.3