git: b44313a0d82d - main - games/cataclysm-dda: fix build
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 12 Jan 2025 21:43:49 UTC
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=b44313a0d82d6247aeb93b1456e1128fc607fcab
commit b44313a0d82d6247aeb93b1456e1128fc607fcab
Author: Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2025-01-12 11:05:54 +0000
Commit: Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2025-01-12 21:41:52 +0000
games/cataclysm-dda: fix build
/wrkdirs/usr/ports/games/cataclysm-dda/work-curses/Cataclysm-DDA-0.H-g08f04fd/src/game.cpp:2872:42: error: variable 'slen' used in loop condition not modified in loop body [-Werror,-Wfor-loop-analysis]
2872 | for( int slen = vRip[iY].size(); slen > 0; ) {
| ^~~~
---
games/cataclysm-dda/Makefile | 2 ++
1 file changed, 2 insertions(+)
diff --git a/games/cataclysm-dda/Makefile b/games/cataclysm-dda/Makefile
index ad6cc35ba8a0..fdece2f381ad 100644
--- a/games/cataclysm-dda/Makefile
+++ b/games/cataclysm-dda/Makefile
@@ -53,6 +53,8 @@ CMAKE_ARGS+= -DCURSES_INCLUDE_PATH:STRING="${NCURSESINC}"
PORTSCOUT= limit:^0\.[A-Z]
+CXXFLAGS+= -Wno-error=for-loop-analysis
+
post-patch:
@${REINPLACE_CMD} -e 's|%%DISTVERSION%%|${DISTVERSION}|' ${WRKSRC}/src/version.cmake