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.
This commit is contained in:
Dimitry Andric 2016-08-28 11:54:45 +00:00
parent e92a9ae100
commit 241fb95db4

View File

@ -81,6 +81,9 @@ CWARNFLAGS.clang+= -Wno-unused-local-typedef
.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