Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Aug 2023 18:01:30 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: 79cb9f7b2d24 - main - games/avp: Fix build with llvm16
Message-ID:  <202308051801.375I1UsE090042@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=79cb9f7b2d242a72d7fefd09e68bf0f92d6f97e8

commit 79cb9f7b2d242a72d7fefd09e68bf0f92d6f97e8
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-08-05 15:00:25 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-08-05 18:01:10 +0000

    games/avp: Fix build with llvm16
    
    Approved by:    portmgr (blanket)
    Sponsored by:   The FreeBSD Foundation
---
 games/avp/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/games/avp/Makefile b/games/avp/Makefile
index dfd871f34e56..f4b74cceb1c5 100644
--- a/games/avp/Makefile
+++ b/games/avp/Makefile
@@ -20,6 +20,12 @@ LDFLAGS_i386=	-Wl,-znotext
 
 PLIST_FILES=	bin/${PORTNAME}
 
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 ))
+CFLAGS+=	-Wno-error=incompatible-function-pointer-types
+.endif
+
 do-install:
 	${INSTALL_PROGRAM} ${BUILD_WRKSRC}/${PORTNAME} \
 		${STAGEDIR}${PREFIX}/bin/



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