summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2013-10-15 14:44:42 +0000
committerjoerg <joerg@pkgsrc.org>2013-10-15 14:44:42 +0000
commit5601f1b995e9dc52cb330d2799864b0fde84a84d (patch)
treeb3b1e37708c9dee88bec96e65471873b273d7a72 /mail
parent65a9612dd128a2ceafdb293a8be7732c1a3feab1 (diff)
downloadpkgsrc-5601f1b995e9dc52cb330d2799864b0fde84a84d.tar.gz
Ignore unused constants for clang.
Diffstat (limited to 'mail')
-rw-r--r--mail/milter-regex/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/mail/milter-regex/Makefile b/mail/milter-regex/Makefile
index 6c730ac74d0..59dc07d3b06 100644
--- a/mail/milter-regex/Makefile
+++ b/mail/milter-regex/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.21 2013/09/13 11:49:36 obache Exp $
+# $NetBSD: Makefile,v 1.22 2013/10/15 14:44:42 joerg Exp $
DISTNAME= milter-regex-1.7
PKGREVISION= 2
@@ -30,6 +30,11 @@ SUBST_SED.var= -e 's|/var/spool|${VARBASE}|g'
.include "../../mk/bsd.prefs.mk"
+.include "../../mk/compiler.mk"
+.if !empty(PKGSRC_COMPILER:Mclang)
+_WRAP_EXTRA_ARGS.CC+= -Wno-unused-const-variable
+.endif
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/milter-regex ${DESTDIR}${PREFIX}/sbin
.if !empty(MANINSTALL:Mcatinstall)