git: de6240d6a1f7 - main - x11-toolkits/itk: Fix build with llvm16

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sun, 25 Jun 2023 18:10:04 UTC
The branch main has been updated by bofh:

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

commit de6240d6a1f7460da9b3ff0743aba1680eaf5a05
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-25 13:41:30 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-25 18:09:48 +0000

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

diff --git a/x11-toolkits/itk/Makefile b/x11-toolkits/itk/Makefile
index b0dc7654de48..14dd675a42fa 100644
--- a/x11-toolkits/itk/Makefile
+++ b/x11-toolkits/itk/Makefile
@@ -29,6 +29,12 @@ ITK_LIB=	libitk.so.${MAJOR}
 
 ITK_LIB_FILE=	${ITK_LIB}.${SHLIB_MAJOR}
 
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CFLAGS+=	-Wno-error=incompatible-function-pointer-types
+.endif
+
 .if defined(DISPLAY)
 post-build:	test
 .else