git: f518674ae516 - main - devel/replay: Fix build with llvm16

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

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

commit f518674ae516244e2d95f35f3a465e8584f0e28c
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-08-06 23:48:29 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-08-06 23:52:29 +0000

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

diff --git a/devel/replay/Makefile b/devel/replay/Makefile
index 1ac673f82834..4ca00145d8f5 100644
--- a/devel/replay/Makefile
+++ b/devel/replay/Makefile
@@ -12,4 +12,10 @@ MAKE_ENV=	WITHOUT_MAN=yes
 
 PLIST_FILES=	bin/replay
 
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 ))
+CFLAGS+=	-Wno-error=unused-but-set-variable
+.endif
+
 .include <bsd.port.mk>