git: fdf1bcf97ebb - main - x11-toolkits/granite: Fix build with llvm16

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

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

commit fdf1bcf97ebb17c62774ae0255cbcf59ba704bac
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-24 01:01:55 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-24 04:37:51 +0000

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

diff --git a/x11-toolkits/granite/Makefile b/x11-toolkits/granite/Makefile
index c506c4a75d63..0a07da13ee30 100644
--- a/x11-toolkits/granite/Makefile
+++ b/x11-toolkits/granite/Makefile
@@ -24,4 +24,10 @@ BINARY_ALIAS=	python3=${PYTHON_CMD}
 PORTSCOUT=	limit:^6
 PLIST_SUB=	DISTVERSION=${DISTVERSION}
 
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CFLAGS+=	-Wno-error=incompatible-function-pointer-types
+.endif
+
 .include <bsd.port.mk>