Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Jan 2025 21:43:49 GMT
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: b44313a0d82d - main - games/cataclysm-dda: fix build
Message-ID:  <202501122143.50CLhn6T098546@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202501122143.50CLhn6T098546>