git: 74d3b748bc25 - main - audio/play: Fix build with llvm16

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

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

commit 74d3b748bc256e7f5e0190ac68994687943acbfb
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-24 10:20:25 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-24 10:58:47 +0000

    audio/play: Fix build with llvm16
    
    Sponsored by:   The FreeBSD Foundation
---
 audio/play/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/audio/play/Makefile b/audio/play/Makefile
index f58c839cbe9c..59cc796ed91e 100644
--- a/audio/play/Makefile
+++ b/audio/play/Makefile
@@ -25,6 +25,10 @@ PLIST_FILES=	bin/play man/ja/man1/play.1.gz
 CFLAGS+=	-Wno-error=int-conversion
 .endif
 
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CFLAGS+=	-Wno-error=incompatible-function-pointer-types
+.endif
+
 post-patch:
 .for file in play_audio.c mixer_ctl.c encode_sun.c speed.c
 	@${REINPLACE_CMD} '/soundcard\.h/s,machine,sys,' ${WRKSRC}/${file}