git: 52151a275dbf - main - games/dxx-rebirth: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 21 Jul 2023 14:45:45 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=52151a275dbf56060431cc0f469e13c6f2d3b782
commit 52151a275dbf56060431cc0f469e13c6f2d3b782
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-07-21 14:45:01 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-07-21 14:45:30 +0000
games/dxx-rebirth: Fix build with llvm16
Approved by: portmgr (blanket)
Sponsored by: The FreeBSD Foundation
---
games/dxx-rebirth/Makefile | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/games/dxx-rebirth/Makefile b/games/dxx-rebirth/Makefile
index dfc6bb839161..41689ce3133b 100644
--- a/games/dxx-rebirth/Makefile
+++ b/games/dxx-rebirth/Makefile
@@ -45,6 +45,10 @@ MAKE_ARGS+= lto=1
CPPFLAGS+= -Wno-error=unused-but-set-parameter -Wno-error=unused-but-set-variable
.endif
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CPPFLAGS+= -Wno-error=unused-result
+.endif
+
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/d1x-rebirth \
${STAGEDIR}${PREFIX}/bin/d2x-rebirth