git: 82eb549f800e - stable/13 - Support compilation with llvm 15

From: Mateusz Guzik <mjg_at_FreeBSD.org>
Date: Thu, 30 Mar 2023 14:54:33 UTC
The branch stable/13 has been updated by mjg:

URL: https://cgit.FreeBSD.org/src/commit/?id=82eb549f800e08158802b74bef62e7db0939a3fe

commit 82eb549f800e08158802b74bef62e7db0939a3fe
Author:     Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2023-03-30 14:53:33 +0000
Commit:     Mateusz Guzik <mjg@FreeBSD.org>
CommitDate: 2023-03-30 14:53:33 +0000

    Support compilation with llvm 15
    
    This is a direct bare minimum commit.
---
 sys/conf/kern.mk | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk
index 1144522c357b..5b12bbb1c9ce 100644
--- a/sys/conf/kern.mk
+++ b/sys/conf/kern.mk
@@ -45,6 +45,11 @@ CWARNEXTRA+=	-Wno-address-of-packed-member
 .if ${COMPILER_VERSION} >= 130000
 CWARNFLAGS+=	-Wno-error=unused-but-set-variable
 .endif
+.if ${COMPILER_VERSION} >= 150000
+CWARNFLAGS+=	-Wno-error=deprecated-non-prototype
+CWARNFLAGS+=	-Wno-error=array-parameter
+CWARNFLAGS+=	-Wno-error=strict-prototypes
+.endif
 .endif	# clang
 
 .if ${COMPILER_TYPE} == "gcc"