summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2017-01-08 14:49:50 +0000
committerDimitry Andric <dim@FreeBSD.org>2017-01-08 14:49:50 +0000
commite6e7c7863193b63dc91e8c192ec3e9603d415120 (patch)
treef502e5f37f16a6e3a130ac3322e938d97e767868
parent69415bc524558b9f64dd0524e76a08e267ea5bdf (diff)
Notes
-rw-r--r--share/mk/bsd.sys.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk
index e2aba02364a07..20ea85f3d9a30 100644
--- a/share/mk/bsd.sys.mk
+++ b/share/mk/bsd.sys.mk
@@ -78,15 +78,15 @@ CWARNFLAGS.clang+= -Wno-tautological-compare -Wno-unused-value\
.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 30600
CWARNFLAGS.clang+= -Wno-unused-local-typedef
.endif
+.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 40000
+CWARNFLAGS.clang+= -Wno-address-of-packed-member
+.endif
.endif # WARNS <= 3
.if ${WARNS} <= 2
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