git: 13b8caebd678 - main - devel/flatbuffers205: Fix build with llvm16

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sun, 06 Aug 2023 18:30:47 UTC
The branch main has been updated by bofh:

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

commit 13b8caebd678c48c3491d4ca110f26c3bb19cf76
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-08-06 17:41:05 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-08-06 18:30:38 +0000

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

diff --git a/devel/flatbuffers205/Makefile b/devel/flatbuffers205/Makefile
index 1610ec4044ed..514f362243db 100644
--- a/devel/flatbuffers205/Makefile
+++ b/devel/flatbuffers205/Makefile
@@ -24,4 +24,10 @@ CMAKE_TESTING_ON=	FLATBUFFERS_BUILD_TESTS # one test fails, see https://github.c
 
 BINARY_ALIAS=	git=false python3=${PYTHON_CMD}
 
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 ))
+CXXFLAGS+=	-Wno-error=unused-command-line-argument
+.endif
+
 .include <bsd.port.mk>