The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=5221ce15aa9e0097b365b305c20d05154b67571c
commit 5221ce15aa9e0097b365b305c20d05154b67571c Author: Dimitry Andric <d...@freebsd.org> AuthorDate: 2024-07-30 18:28:51 +0000 Commit: Dimitry Andric <d...@freebsd.org> CommitDate: 2024-11-06 18:52:15 +0000 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) --- share/mk/bsd.sys.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk index 83d3004adf90..d28bf09f2cb2 100644 --- a/share/mk/bsd.sys.mk +++ b/share/mk/bsd.sys.mk @@ -95,6 +95,10 @@ CWARNFLAGS.clang+= -Wno-error=array-parameter CWARNFLAGS.clang+= -Wno-error=deprecated-non-prototype 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\