git: 9163e631b1f2 - main - graphics/mesa-demos: Fix build with llvm16

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

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

commit 9163e631b1f2b73c31a6edb211adc7d238a0364d
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-24 01:07:33 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-24 04:37:52 +0000

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

diff --git a/graphics/mesa-demos/Makefile b/graphics/mesa-demos/Makefile
index 1e114053f362..dbfe288960dd 100644
--- a/graphics/mesa-demos/Makefile
+++ b/graphics/mesa-demos/Makefile
@@ -22,4 +22,10 @@ USE_XORG=	xorgproto x11 xdamage xext xfixes xi xxf86vm
 CONFIGURE_ARGS+=--disable-gles1 --disable-osmesa --disable-vg --disable-wayland \
 		--with-system-data-files
 
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CFLAGS+=	-Wno-error=incompatible-function-pointer-types
+.endif
+
 .include <bsd.port.mk>