svn commit: r304954 - projects/clang390-import/share/mk

Dimitry Andric dim at FreeBSD.org
Sun Aug 28 11:54:46 UTC 2016


Author: dim
Date: Sun Aug 28 11:54:45 2016
New Revision: 304954
URL: https://svnweb.freebsd.org/changeset/base/304954

Log:
  Squelch -Wconstant-conversion for WARNS <= 2.  In clang 3.9.0, this
  warning has become more aggressive, and it usually turns up in decades
  old code, where fixing it is more trouble than it is worth.

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

Modified: projects/clang390-import/share/mk/bsd.sys.mk
==============================================================================
--- projects/clang390-import/share/mk/bsd.sys.mk	Sun Aug 28 11:51:46 2016	(r304953)
+++ projects/clang390-import/share/mk/bsd.sys.mk	Sun Aug 28 11:54:45 2016	(r304954)
@@ -81,6 +81,9 @@ CWARNFLAGS.clang+=	-Wno-unused-local-typ
 .endif # WARNS <= 3
 .if ${WARNS} <= 2
 CWARNFLAGS.clang+=	-Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter
+.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 30900
+CWARNFLAGS.clang+=	-Wno-constant-conversion
+.endif
 .endif # WARNS <= 2
 .if ${WARNS} <= 1
 CWARNFLAGS.clang+=	-Wno-parentheses


More information about the svn-src-projects mailing list