git: 7be12eb0e21c - main - biology/abyss: Fix build with llvm15

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Wed, 07 Jun 2023 07:25:24 UTC
The branch main has been updated by bofh:

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

commit 7be12eb0e21cff50ef862997d6420baf408ffa28
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-07 07:20:57 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-07 07:25:09 +0000

    biology/abyss: Fix build with llvm15
    
    Approved by:    portmgr (blanket)
---
 biology/abyss/Makefile | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/biology/abyss/Makefile b/biology/abyss/Makefile
index 8436eab2b31d..d023c7d5b8b6 100644
--- a/biology/abyss/Makefile
+++ b/biology/abyss/Makefile
@@ -42,4 +42,10 @@ PORTDOCS=	*
 
 PORTSCOUT=	limit:^[0-9\.]*$$ # to ignore alpha-numeric tags
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
+CFLAGS+=	-Wno-error=unused-but-set-variable
+.endif
+
+.include <bsd.port.post.mk>