git: 944d53ea8c43 - main - finance/expense: Fix build with llvm16

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Fri, 18 Aug 2023 04:56:37 UTC
The branch main has been updated by bofh:

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

commit 944d53ea8c439dbb4caa5e940ef610c93b3f7e73
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-08-18 04:38:58 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-08-18 04:56:23 +0000

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

diff --git a/finance/expense/Makefile b/finance/expense/Makefile
index c4b61a20b336..eabe22510461 100644
--- a/finance/expense/Makefile
+++ b/finance/expense/Makefile
@@ -18,6 +18,12 @@ WRKSRC=		${WRKDIR}/Expense
 
 PORTSCOUT=	ignore:1
 
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 ))
+ADDITIONAL_CPPFLAGS+=	-Wno-error=incompatible-function-pointer-types
+.endif
+
 post-install:
 	${STRIP_CMD} ${STAGEDIR}${PREFIX}/GNUstep/System/Applications/Expense.app/Expense