git: 8861a8abb3fe - main - sysutils/fsc: Fix build with llvm16

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

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

commit 8861a8abb3fe70365022e512c69009b457e36c4e
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-08-06 11:48:04 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-08-06 12:30:35 +0000

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

diff --git a/sysutils/fsc/Makefile b/sysutils/fsc/Makefile
index 0641ed46010e..9679f3adeba3 100644
--- a/sysutils/fsc/Makefile
+++ b/sysutils/fsc/Makefile
@@ -16,6 +16,12 @@ GH_ACCOUNT=	bsdtrhodes
 GH_PROJECT=	freebsd-fscd
 GH_TAGNAME=	ef16626
 
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 ))
+CFLAGS+=	-Wno-error=unused-but-set-variable
+.endif
+
 post-patch:
 	@${REINPLACE_CMD} -e 's|/etc|${PREFIX}/etc|' \
 		${WRKSRC}/fscd/fscd.8 ${WRKSRC}/fscd/fscd.c \