Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Jun 2023 15:31:08 GMT
From:      Muhammad Moinur Rahman <bofh@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: f85994a9462b - main - net-p2p/torrent-file-editor: Fix build with llvm15
Message-ID:  <202306081531.358FV8oS061346@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by bofh:

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

commit f85994a9462b7fdbbdf62a4db5f2b1f43135de95
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-08 14:15:21 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-08 15:30:54 +0000

    net-p2p/torrent-file-editor: Fix build with llvm15
---
 net-p2p/torrent-file-editor/Makefile | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/net-p2p/torrent-file-editor/Makefile b/net-p2p/torrent-file-editor/Makefile
index 23ea32847f69..10ee0769e4db 100644
--- a/net-p2p/torrent-file-editor/Makefile
+++ b/net-p2p/torrent-file-editor/Makefile
@@ -23,6 +23,12 @@ OPTIONS_DEFAULT=	DONATION
 DONATION_DESC=	Show donation text in the About dialog
 DONATION_CMAKE_OFF=	-DDISABLE_DONATION:BOOL=ON
 
+.include <bsd.port.pre.mk>
+
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
+CFLAGS+=	-Wno-error=unused-but-set-variable
+.endif
+
 post-patch:
 	@${REINPLACE_CMD} -e 's,const auto file,const auto \&file,' \
 		${WRKSRC}/bencodemodel.cpp ${WRKSRC}/mainwindow.cpp
@@ -30,4 +36,4 @@ post-patch:
 	@${REINPLACE_CMD} -i .c++20 '/file/s/version/&.txt/' \
 		${WRKSRC}/cmake/Dmg.cmake ${WRKSRC}/cmake/Version.cmake
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>



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