git: b41367a112fb - main - japanese/sj3-server: Fix build with llvm16

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sat, 05 Aug 2023 11:53:26 UTC
The branch main has been updated by bofh:

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

commit b41367a112fb3decf178778f28680d634832c3da
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-08-03 09:00:06 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-08-05 11:53:17 +0000

    japanese/sj3-server: Fix build with llvm16
    
    - Pet portclippy
    
    Approved by:    portmgr (blanket)
    Sponsored by:   The FreeBSD Foundation
---
 japanese/sj3-server/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/japanese/sj3-server/Makefile b/japanese/sj3-server/Makefile
index 7a5bfea4aa11..4bf07ce1e6b5 100644
--- a/japanese/sj3-server/Makefile
+++ b/japanese/sj3-server/Makefile
@@ -51,6 +51,10 @@ POSTPATCHES.nodocports= \
 CFLAGS+=	-Wno-error=int-conversion
 .endif
 
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 ))
+CFLAGS+=	-Wno-error=incompatible-function-pointer-types
+.endif
+
 post-patch:
 	cd ${WRKSRC} && ${CAT} ${POSTPATCHES} | ${PATCH}