git: 0f59f3265c75 - main - games/tuxpaint: Fix build with llvm16

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

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

commit 0f59f3265c75404e19766d04f909e30131f48ba8
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-25 23:39:52 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-26 00:09:49 +0000

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

diff --git a/games/tuxpaint/Makefile b/games/tuxpaint/Makefile
index efda8aa938c0..81ac9b11d3bb 100644
--- a/games/tuxpaint/Makefile
+++ b/games/tuxpaint/Makefile
@@ -53,6 +53,12 @@ PORTDATA=	*
 
 OPTIONS_DEFINE=	DOCS
 
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CFLAGS+=	-Wno-error=incompatible-function-pointer-types
+.endif
+
 post-extract:
 	@${RM} -r ${WRKSRC}/fonts/locale/vi_docs