{chinese,japanese,korean}/FreeWnn-server: Fix build with llvm16

Approved by:	portmgr (blanket)
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Muhammad Moinur Rahman 2023-08-07 17:23:55 +02:00
parent 172c0c5438
commit c8234c33e7
1 changed files with 10 additions and 0 deletions

View File

@ -34,4 +34,14 @@ KWNN_CONFIGURE_ON+= --with-libkwnn=-lkwnn \
--with-kwnn-libraries="${PREFIX}/lib"
KWNN_USE= RC_SUBR=kwnn
.include <bsd.port.options.mk>
.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
CFLAGS+= -Wno-error=int-conversion
.endif
.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 ))
CFLAGS+= -Wno-error=incompatible-function-pointer-types
.endif
.include <bsd.port.mk>