mirror of
https://github.com/opnsense/src.git
synced 2026-02-18 18:20:26 -05:00
bsd.sys.mk: for clang >= 19, similar to gcc >= 8.1, turn off -Werror for
-Wcast-function-type-mismatch. PR: 280562 MFC after: 1 month (cherry picked from commit d575077527d448ee45b923fa8c6b0cb7216ca5c5)
This commit is contained in:
parent
69a31343a4
commit
de45d36ffb
1 changed files with 4 additions and 0 deletions
|
|
@ -88,6 +88,10 @@ CWARNFLAGS.clang+= -Wno-unused-const-variable
|
|||
.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 150000
|
||||
CWARNFLAGS.clang+= -Wno-error=unused-but-set-parameter
|
||||
.endif
|
||||
.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 190000
|
||||
# Similar to gcc >= 8.1 -Wno-error=cast-function-type below
|
||||
CWARNFLAGS.clang+= -Wno-error=cast-function-type-mismatch
|
||||
.endif
|
||||
.endif # WARNS <= 6
|
||||
.if ${WARNS} <= 3
|
||||
CWARNFLAGS.clang+= -Wno-tautological-compare -Wno-unused-value\
|
||||
|
|
|
|||
Loading…
Reference in a new issue