summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2011-12-16 15:58:38 +0000
committerdim <dim@FreeBSD.org>2011-12-16 15:58:38 +0000
commitef7c6e2e94a747cf5c286f4f0a099157580f0598 (patch)
tree5cebfb333e028403d4f11d75c7539122849a11c4
parent75be8e3194c48ac0fc860d48ca52931f97f42174 (diff)
downloadFreeBSD-src-ef7c6e2e94a747cf5c286f4f0a099157580f0598.zip
FreeBSD-src-ef7c6e2e94a747cf5c286f4f0a099157580f0598.tar.gz
Unfortunately, clang gives warnings about sendmail code that cannot be
turned off yet. Since this is contrib code, and we don't really care about the warnings, just turn make them non-fatal for now. MFC after: 1 week
-rw-r--r--libexec/mail.local/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/libexec/mail.local/Makefile b/libexec/mail.local/Makefile
index 3e59609..345e2a46 100644
--- a/libexec/mail.local/Makefile
+++ b/libexec/mail.local/Makefile
@@ -12,6 +12,13 @@ CFLAGS+=-I${SENDMAIL_DIR}/include -I.
WARNS?= 2
WFORMAT=0
+.if ${CC:T:Mclang} == "clang"
+# Unfortunately, clang gives warnings about sendmail code that cannot
+# be turned off yet. Since this is contrib code, and we don't really
+# care about the warnings, just turn make them non-fatal for now.
+NO_WERROR=
+.endif
+
LIBSMDIR= ${.OBJDIR}/../../lib/libsm
LIBSM= ${LIBSMDIR}/libsm.a
OpenPOWER on IntegriCloud