git: b3166bd7027b - main - audio/gstreamer1-plugins-sndio: Fix build with llvm16

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sun, 23 Jul 2023 22:16:22 UTC
The branch main has been updated by bofh:

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

commit b3166bd7027b611d8a88773a8622cb5f625366db
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-07-23 20:04:33 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-07-23 22:16:14 +0000

    audio/gstreamer1-plugins-sndio: Fix build with llvm16
    
    Sponsored by:   The FreeBSD Foundation
---
 audio/gstreamer1-plugins-sndio/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/audio/gstreamer1-plugins-sndio/Makefile b/audio/gstreamer1-plugins-sndio/Makefile
index 849127a5787b..5ead937d9f41 100644
--- a/audio/gstreamer1-plugins-sndio/Makefile
+++ b/audio/gstreamer1-plugins-sndio/Makefile
@@ -19,4 +19,10 @@ USE_GNOME=	glib20
 
 PLIST_FILES=	lib/gstreamer-1.0/libgstsndio.so
 
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CFLAGS+=	-Wno-error=incompatible-function-pointer-types
+.endif
+
 .include <bsd.port.mk>