summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2012-12-20 21:46:16 +0000
committerjoerg <joerg@pkgsrc.org>2012-12-20 21:46:16 +0000
commit0da50950f69cc944145128189c65c0d346cdd439 (patch)
tree587fd67da1ed6fb54802eaa59400a0f293ff9fce /misc
parent42c07e9147f929f9da3065b66dc5809dbdbee2ff (diff)
downloadpkgsrc-0da50950f69cc944145128189c65c0d346cdd439.tar.gz
Stop clang from caring about return usage, this is way too messy to fix up.
Diffstat (limited to 'misc')
-rw-r--r--misc/fep/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/misc/fep/Makefile b/misc/fep/Makefile
index 9152c516888..eef2f8c73d1 100644
--- a/misc/fep/Makefile
+++ b/misc/fep/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.22 2012/10/08 09:57:21 asau Exp $
+# $NetBSD: Makefile,v 1.23 2012/12/20 21:46:16 joerg Exp $
DISTNAME= fep
PKGNAME= fep-1.0
@@ -18,6 +18,12 @@ WRKSRC= ${WRKDIR}
MANCOMPRESSED= yes
INSTALLATION_DIRS+= bin man/man1
+.include "../../mk/compiler.mk"
+
+.if !empty(PKGSRC_COMPILER:Mclang)
+CFLAGS+= -Wno-error=return-type
+.endif
+
pre-build:
cd ${WRKSRC} && \
for i in *.[ch]; do ${SED} "s,#endif lint,#endif /* lint */,g" $${i} > $${i}.new && \