Follow-up to r326375, by moving the block that disables errors on the
new clang 6.0.0 -Wtautological-constant-compare warning to the WARNS <= 6 level. (This warning is still being worked on upstream to reduce false positives, but it is currently still too trigger happy.)
This commit is contained in:
parent
c690824a91
commit
dd5c0d9d4b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=327161
@ -69,7 +69,10 @@ CWARNFLAGS+= -Wno-pointer-sign
|
||||
.if ${WARNS} <= 6
|
||||
CWARNFLAGS.clang+= -Wno-empty-body -Wno-string-plus-int
|
||||
.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 30400
|
||||
CWARNFLAGS.clang+= -Wno-unused-const-variable
|
||||
CWARNFLAGS.clang+= -Wno-unused-const-variable
|
||||
.endif
|
||||
.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 60000
|
||||
CWARNFLAGS.clang+= -Wno-error=tautological-constant-compare
|
||||
.endif
|
||||
.endif # WARNS <= 6
|
||||
.if ${WARNS} <= 3
|
||||
@ -81,9 +84,6 @@ CWARNFLAGS.clang+= -Wno-unused-local-typedef
|
||||
.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 40000
|
||||
CWARNFLAGS.clang+= -Wno-address-of-packed-member
|
||||
.endif
|
||||
.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 60000
|
||||
CWARNFLAGS.clang+= -Wno-error=tautological-constant-compare
|
||||
.endif
|
||||
.endif # WARNS <= 3
|
||||
.if ${WARNS} <= 2
|
||||
CWARNFLAGS.clang+= -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter
|
||||
|
Loading…
Reference in New Issue
Block a user