git: 3a8028c3d171 - main - textproc/rubygem-fast_xs: Fix build with llvm16

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Wed, 02 Aug 2023 16:22:32 UTC
The branch main has been updated by bofh:

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

commit 3a8028c3d171e036c60a39bf64b0f84cf185338b
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-08-02 16:03:59 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-08-02 16:22:20 +0000

    textproc/rubygem-fast_xs: Fix build with llvm16
    
    Sponsored by:   The FreeBSD Foundation
---
 textproc/rubygem-fast_xs/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/textproc/rubygem-fast_xs/Makefile b/textproc/rubygem-fast_xs/Makefile
index 80bbb316cac8..a782fdb65e87 100644
--- a/textproc/rubygem-fast_xs/Makefile
+++ b/textproc/rubygem-fast_xs/Makefile
@@ -13,4 +13,10 @@ LICENSE=	MIT
 
 USES=		gem
 
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 ))
+CONFIGURE_ARGS+=	--with-cflags="-Wno-error=incompatible-function-pointer-types"
+.endif
+
 .include <bsd.port.mk>