git: 2d9edc4270c1 - main - net-p2p/shx: Fix build with llvm16

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sat, 24 Jun 2023 10:59:00 UTC
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2d9edc4270c1059df82384c815979c8b52f1644d

commit 2d9edc4270c1059df82384c815979c8b52f1644d
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-24 10:26:27 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-24 10:58:48 +0000

    net-p2p/shx: Fix build with llvm16
    
    Sponsored by:   The FreeBSD Foundation
---
 net-p2p/shx/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/net-p2p/shx/Makefile b/net-p2p/shx/Makefile
index afd77ac4853c..4fa18f0c331d 100644
--- a/net-p2p/shx/Makefile
+++ b/net-p2p/shx/Makefile
@@ -59,6 +59,10 @@ XMMS_CONFIGURE_ENABLE=		xmms
 CFLAGS+=	-Wno-error=int-conversion
 .endif
 
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CFLAGS+=	-Wno-error=incompatible-function-pointer-types
+.endif
+
 do-install:
 	${CP} -fv ${WRKSRC}/run/hx ${STAGEDIR}${PREFIX}/bin/
 	${MKDIR} ${STAGEDIR}${PREFIX}/share/examples/${PORTNAME}