git: 2d0d945a5884 - main - sysutils/cramfs: Fix build with llvm16

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

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

commit 2d0d945a5884215b6aa1195b265a4f854e0bb759
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-08-02 18:47:57 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-08-02 18:53:44 +0000

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

diff --git a/sysutils/cramfs/Makefile b/sysutils/cramfs/Makefile
index 1e8493856130..488f305450b0 100644
--- a/sysutils/cramfs/Makefile
+++ b/sysutils/cramfs/Makefile
@@ -17,6 +17,12 @@ MAKEFILE=	GNUmakefile
 
 PLIST_FILES=	sbin/cramfsck sbin/mkcramfs
 
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 ))
+CFLAGS+=	-Wno-error=incompatible-function-pointer-types
+.endif
+
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/cramfsck ${STAGEDIR}${PREFIX}/sbin
 	${INSTALL_PROGRAM} ${WRKSRC}/mkcramfs ${STAGEDIR}${PREFIX}/sbin