summaryrefslogtreecommitdiff
path: root/devel/rsltc
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2015-04-18 20:40:46 +0000
committerjoerg <joerg@pkgsrc.org>2015-04-18 20:40:46 +0000
commit3197e479abeb07220e0de51138935ef08c7b1de1 (patch)
treecafa2f5aeb7c525f388f119e48b4b636aac1ccbe /devel/rsltc
parent73da43eda128c0fa65407cc9f2e99853ff587c11 (diff)
downloadpkgsrc-3197e479abeb07220e0de51138935ef08c7b1de1.tar.gz
Let clang ignore the mixed up return use of the K&R code.
Diffstat (limited to 'devel/rsltc')
-rw-r--r--devel/rsltc/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/devel/rsltc/Makefile b/devel/rsltc/Makefile
index e01b5592fa8..f72a0fa7925 100644
--- a/devel/rsltc/Makefile
+++ b/devel/rsltc/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 2013/02/17 19:18:00 dholland Exp $
+# $NetBSD: Makefile,v 1.16 2015/04/18 20:40:46 joerg Exp $
#
DISTNAME= rsltcsrc
@@ -23,6 +23,11 @@ MAKE_FLAGS+= LEX=${LEX}
MAKE_JOBS_SAFE= no
+.include "../../mk/compiler.mk"
+.if !empty(PKGSRC_COMPILER:Mclang)
+CFLAGS+= -Wno-return-type
+.endif
+
post-extract:
${CP} ${FILESDIR}/path.el ${WRKSRC}