aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2017-01-05 18:32:53 +0000
committerDimitry Andric <dim@FreeBSD.org>2017-01-05 18:32:53 +0000
commita45fc83cc54489490d94596a2ea0671cc26047ca (patch)
tree7c655dc786a04ea12989e5f0482c0a3e6def819f
parent53fe1d28fa79983903d24585e3db2638b7f53645 (diff)
Notes
-rw-r--r--share/mk/bsd.sys.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk
index 7a4ed45a8a6d..e2aba02364a0 100644
--- a/share/mk/bsd.sys.mk
+++ b/share/mk/bsd.sys.mk
@@ -84,6 +84,9 @@ CWARNFLAGS.clang+= -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter
.endif # WARNS <= 2
.if ${WARNS} <= 1
CWARNFLAGS.clang+= -Wno-parentheses
+.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 40000
+CWARNFLAGS.clang+= -Wno-address-of-packed-member
+.endif
.endif # WARNS <= 1
.if defined(NO_WARRAY_BOUNDS)
CWARNFLAGS.clang+= -Wno-array-bounds