git: 423c3ab55d07 - main - games/nethack32: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 26 Jul 2023 09:40:23 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=423c3ab55d0759d882ffe6afcae803c67e766328
commit 423c3ab55d0759d882ffe6afcae803c67e766328
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-07-26 09:00:52 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-07-26 09:40:12 +0000
games/nethack32: Fix build with llvm16
Approved by: portmgr (blanket)
Sponsored by: The FreeBSD Foundation
---
games/nethack32/Makefile | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/games/nethack32/Makefile b/games/nethack32/Makefile
index 89f91c16aa0d..88ec84832b94 100644
--- a/games/nethack32/Makefile
+++ b/games/nethack32/Makefile
@@ -40,6 +40,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
+
post-patch:
.for f in include/config.h sys/unix/Makefile.top sys/unix/Makefile.doc
@${REINPLACE_CMD} -e 's|%%HACKNAME%%|${HACKNAME}|g' \