Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Jul 2023 09:40:24 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: 3372e98c040e - main - games/nethack33: Fix build with llvm16
Message-ID:  <202307260940.36Q9eOcP050337@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=3372e98c040e09e375e86aea2e31ef885499b602

commit 3372e98c040e09e375e86aea2e31ef885499b602
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-07-26 09:03:32 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-07-26 09:40:12 +0000

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

diff --git a/games/nethack33/Makefile b/games/nethack33/Makefile
index 6652d46e802b..e84dac0d776d 100644
--- a/games/nethack33/Makefile
+++ b/games/nethack33/Makefile
@@ -47,6 +47,10 @@ PLIST_SUB+=	HACKLINK=""
 PLIST_SUB+=	HACKLINK="@comment "
 .endif
 
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 ))
+CFLAGS+=	-Wno-error=incompatible-function-pointer-types
+.endif
+
 pre-everything::
 .if defined(WITH_TTY_GRAPHICS) || defined(WITHOUT_X11)
 	@${ECHO_MSG} "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"



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