git: 30c44d9a9c78 - main - misc/dartsim: Fix build with llvm15

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Fri, 09 Jun 2023 16:55:19 UTC
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=30c44d9a9c78315ce7bf3c2fab9c2113b9bd4581

commit 30c44d9a9c78315ce7bf3c2fab9c2113b9bd4581
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-09 16:45:13 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-09 16:55:04 +0000

    misc/dartsim: Fix build with llvm15
    
    Approved by:    portmgr (blanket)
---
 misc/dartsim/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/misc/dartsim/Makefile b/misc/dartsim/Makefile
index e4bb640dec12..d89e4ada1c44 100644
--- a/misc/dartsim/Makefile
+++ b/misc/dartsim/Makefile
@@ -55,4 +55,10 @@ OPTIONS_DEFINE=	DOCS
 
 PORTDOCS=	*
 
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
+CFLAGS+=	-Wno-error=unused-but-set-variable
+.endif
+
 .include <bsd.port.mk>