git: c1706f3b0c26 - main - japanese/canna-server: Fix build with llvm16

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Fri, 18 Aug 2023 19:42:22 UTC
The branch main has been updated by bofh:

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

commit c1706f3b0c260d3f58a2c5f57751d3d1358faad5
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-08-18 18:41:49 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-08-18 19:42:06 +0000

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

diff --git a/japanese/canna-server/Makefile b/japanese/canna-server/Makefile
index 9ad0366db1f2..b7f82ec63a85 100644
--- a/japanese/canna-server/Makefile
+++ b/japanese/canna-server/Makefile
@@ -24,6 +24,12 @@ MAKE_JOBS_UNSAFE=	yes
 
 OPTIONS_DEFINE=	DOCS
 
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 ))
+MAKE_ARGS+=	CCOPTIONS="-Wno-error=int-conversion"
+.endif
+
 post-install:
 	@cd ${INSTALL_WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} \
 	    ${MAKEFILE} ${MAKE_ARGS} install.man