git: 949b92ecdd2b - main - games/dxx-rebirth: Fix build with llvm15

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sat, 03 Jun 2023 18:07:00 UTC
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=949b92ecdd2b0dceaa140ec75c5742b2e2d96ab2

commit 949b92ecdd2b0dceaa140ec75c5742b2e2d96ab2
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-03 17:10:56 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-03 18:03:23 +0000

    games/dxx-rebirth: Fix build with llvm15
    
    Approved by:    portmgr (blanket)
---
 games/dxx-rebirth/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/games/dxx-rebirth/Makefile b/games/dxx-rebirth/Makefile
index 2998713ea9c2..dfc6bb839161 100644
--- a/games/dxx-rebirth/Makefile
+++ b/games/dxx-rebirth/Makefile
@@ -41,6 +41,10 @@ PLIST_FILES=	bin/d1x-rebirth \
 MAKE_ARGS+=	lto=1
 .endif
 
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
+CPPFLAGS+=	-Wno-error=unused-but-set-parameter -Wno-error=unused-but-set-variable
+.endif
+
 post-install:
 	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/d1x-rebirth \
 		${STAGEDIR}${PREFIX}/bin/d2x-rebirth