summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2012-12-24 21:17:12 +0000
committerjoerg <joerg@pkgsrc.org>2012-12-24 21:17:12 +0000
commit8d95d1ffea74554ff7e7fc50f01805938c8f3e65 (patch)
tree32fb3933b2ca28a0be8b04daada93432614f7df9
parent953dab6d21249fb66a208f362c11c271f840026e (diff)
downloadpkgsrc-8d95d1ffea74554ff7e7fc50f01805938c8f3e65.tar.gz
Disable return warning for Clang.
-rw-r--r--x11/xscript/Makefile8
1 files changed, 7 insertions, 1 deletions
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"