git: 492a7f81b14c - main - sysutils/mtpfs: Fix build with llvm16

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Fri, 21 Jul 2023 18:26:28 UTC
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=492a7f81b14ced60bb6094ca1c7d50596a3d2c0c

commit 492a7f81b14ced60bb6094ca1c7d50596a3d2c0c
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-07-21 18:18:30 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-07-21 18:26:14 +0000

    sysutils/mtpfs: Fix build with llvm16
    
    - Pet portclippy
    
    Approved by:    portmgr (blanket)
    Sponsored by:   The FreeBSD Foundation
---
 sysutils/mtpfs/Makefile | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/sysutils/mtpfs/Makefile b/sysutils/mtpfs/Makefile
index 11d3402edd42..b105fa5ad239 100644
--- a/sysutils/mtpfs/Makefile
+++ b/sysutils/mtpfs/Makefile
@@ -19,9 +19,16 @@ USES=		autoreconf fuse gnome pkgconfig
 USE_GITHUB=	yes
 GH_ACCOUNT=	cjd
 GH_TAGNAME=	fd3864dd6f0e8183fa2598d4cf890401d3a1e09a
-
 USE_GNOME=	glib20
+
 GNU_CONFIGURE=	yes
+
 PLIST_FILES=	bin/mtpfs
 
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CFLAGS+=	-Wno-error=incompatible-function-pointer-types
+.endif
+
 .include <bsd.port.mk>