From 5c1b1d552cc9e2c9190ede0aabd06aa95b776892 Mon Sep 17 00:00:00 2001 From: dim Date: Sun, 8 Jan 2017 14:49:50 +0000 Subject: [PATCH] Disable -Waddress-of-packed-member for WARNS <= 3. --- share/mk/bsd.sys.mk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk index e2aba02364a0..20ea85f3d9a3 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