svn commit: r311685 - projects/clang400-import/share/mk

Dimitry Andric dim at FreeBSD.org
Sun Jan 8 14:49:51 UTC 2017


Author: dim
Date: Sun Jan  8 14:49:50 2017
New Revision: 311685
URL: https://svnweb.freebsd.org/changeset/base/311685

Log:
  Disable -Waddress-of-packed-member for WARNS <= 3.

Modified:
  projects/clang400-import/share/mk/bsd.sys.mk

Modified: projects/clang400-import/share/mk/bsd.sys.mk
==============================================================================
--- projects/clang400-import/share/mk/bsd.sys.mk	Sun Jan  8 14:36:18 2017	(r311684)
+++ projects/clang400-import/share/mk/bsd.sys.mk	Sun Jan  8 14:49:50 2017	(r311685)
@@ -78,15 +78,15 @@ CWARNFLAGS.clang+=	-Wno-tautological-com
 .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


More information about the svn-src-projects mailing list