mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
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
1 changed files with 4 additions and 4 deletions
|
|
@ -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 a new issue