git: c8234c33e77b - main - {chinese,japanese,korean}/FreeWnn-server: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 07 Aug 2023 15:25:26 UTC
The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=c8234c33e77bef7c00fe5770f6bf7ae680c6dd83 commit c8234c33e77bef7c00fe5770f6bf7ae680c6dd83 Author: Muhammad Moinur Rahman <bofh@FreeBSD.org> AuthorDate: 2023-08-07 15:23:55 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2023-08-07 15:24:46 +0000 {chinese,japanese,korean}/FreeWnn-server: Fix build with llvm16 Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation --- japanese/FreeWnn-server/Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/japanese/FreeWnn-server/Makefile b/japanese/FreeWnn-server/Makefile index 040f6ce3ecf2..06a68d53486b 100644 --- a/japanese/FreeWnn-server/Makefile +++ b/japanese/FreeWnn-server/Makefile @@ -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>