git: 840d29b46e6a - main - games/gshisen: Fix build with llvm16

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Wed, 19 Jul 2023 20:45:38 UTC
The branch main has been updated by bofh:

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

commit 840d29b46e6a83fdd691a59946dd4a53a24402dc
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-07-19 20:00:57 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-07-19 20:45:27 +0000

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

diff --git a/games/gshisen/Makefile b/games/gshisen/Makefile
index bcb434b60632..61c0249d527f 100644
--- a/games/gshisen/Makefile
+++ b/games/gshisen/Makefile
@@ -14,6 +14,12 @@ LICENSE=	GPLv2+
 USES=		gnustep
 USE_GNUSTEP=	back build
 
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CFLAGS+=	-Wno-error=incompatible-function-pointer-types
+.endif
+
 post-install:
 	${STRIP_CMD} ${STAGEDIR}${PREFIX}/GNUstep/System/Applications/GShisen.app/GShisen