Some warnings depened on the version of clang, allow us to check.
Reviewed by: obrien
This commit is contained in:
parent
1911be667b
commit
19fa76f9b5
@ -26,6 +26,11 @@ COMPILER_TYPE:= clang
|
||||
|
||||
.if ${COMPILER_TYPE} == "clang"
|
||||
COMPILER_FEATURES= c++11
|
||||
.if !defined(_COMPILER_VERSION)
|
||||
_COMPILER_VERSION!= ${CC} --version
|
||||
.endif
|
||||
# some warnings are version specific
|
||||
COMPILER_VERSION:= ${_COMPILER_VERSION:M[1-9].[0-9]*}
|
||||
.else
|
||||
COMPILER_FEATURES=
|
||||
.endif
|
||||
|
@ -67,7 +67,10 @@ CWARNFLAGS+= -Wno-pointer-sign
|
||||
# is set to low values, these have to be disabled explicitly.
|
||||
.if ${COMPILER_TYPE} == "clang" && !defined(EARLY_BUILD)
|
||||
.if ${WARNS} <= 6
|
||||
CWARNFLAGS+= -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable
|
||||
CWARNFLAGS+= -Wno-empty-body -Wno-string-plus-int
|
||||
.if ${COMPILER_VERSION} > 3.3
|
||||
CWARNFLAGS+= -Wno-unused-const-variable
|
||||
.endif
|
||||
.endif # WARNS <= 6
|
||||
.if ${WARNS} <= 3
|
||||
CWARNFLAGS+= -Wno-tautological-compare -Wno-unused-value\
|
||||
|
Loading…
Reference in New Issue
Block a user