git: 296aef65e8a0 - main - chinese/celvis: Fix build with llvm16

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sun, 23 Jul 2023 17:54:35 UTC
The branch main has been updated by bofh:

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

commit 296aef65e8a02ac26f4bc88be03098008d819ca2
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-07-23 17:24:34 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-07-23 17:54:17 +0000

    chinese/celvis: Fix build with llvm16
    
    - Pet portclippy
    
    Sponsored by:   The FreeBSD Foundation
---
 chinese/celvis/Makefile | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/chinese/celvis/Makefile b/chinese/celvis/Makefile
index 8ea362d41d7e..cd7686f0c52b 100644
--- a/chinese/celvis/Makefile
+++ b/chinese/celvis/Makefile
@@ -8,9 +8,17 @@ MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Vi/ex clone that speaks Chinese
 
 USES=		ncurses
-CFLAGS+=	-Wno-error=return-type
+
 MAKE_ARGS=	LIBS="${LDFLAGS} -lncurses"
 
+CFLAGS+=	-Wno-error=return-type
+
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CFLAGS+=	-Wno-error=incompatible-function-pointer-types
+.endif
+
 do-install:
 	@# install target in celvis Makefile is not too good -- this is easier
 	${INSTALL_PROGRAM} ${WRKSRC}/celvis ${WRKSRC}/virec ${STAGEDIR}${PREFIX}/bin