git: 4ab9f21ba94c - main - lang/eisl: Fix build with llvm16

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Thu, 17 Aug 2023 04:33:35 UTC
The branch main has been updated by bofh:

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

commit 4ab9f21ba94cd09e05fa9579cc70ce28e6576cee
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-08-16 20:22:04 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-08-17 04:33:22 +0000

    lang/eisl: Fix build with llvm16
    
    Approved by:    portmgr (blanket)
    Sponsored by:   The FreeBSD Foundation
---
 lang/eisl/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lang/eisl/Makefile b/lang/eisl/Makefile
index e25bc872a509..4ca7c0bbc63d 100644
--- a/lang/eisl/Makefile
+++ b/lang/eisl/Makefile
@@ -39,4 +39,8 @@ EXTRA_PATCHES=	${FILESDIR}/extra-patch-makefile
 CFLAGS+=	-Wno-error=int-conversion
 .endif
 
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400092 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 ))
+CFLAGS+=	-Wno-error=incompatible-function-pointer-types
+.endif
+
 .include <bsd.port.post.mk>