git: c7310466d2a9 - main - audio/lv2proc: Fix build with llvm15

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Mon, 12 Jun 2023 22:58:51 UTC
The branch main has been updated by bofh:

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

commit c7310466d2a98963e0ac53f50d5a87b5dcac7bfe
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-12 22:55:24 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-12 22:58:37 +0000

    audio/lv2proc: Fix build with llvm15
    
    Approved by:    portmgr (blanket)
---
 audio/lv2proc/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/audio/lv2proc/Makefile b/audio/lv2proc/Makefile
index 6e1f923786f9..b74cffd06a2b 100644
--- a/audio/lv2proc/Makefile
+++ b/audio/lv2proc/Makefile
@@ -23,4 +23,10 @@ GNU_CONFIGURE=	yes
 PLIST_FILES=	bin/lv2proc \
 		man/man1/lv2proc.1.gz
 
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
+CFLAGS+=	-Wno-error=strict-prototypes
+.endif
+
 .include <bsd.port.mk>