git: ca88d76e3423 - main - security/palisade: Fix build with llvm15
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 06 Jun 2023 17:48:40 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=ca88d76e3423aa77ee9b10e093d2fc1efe472e67
commit ca88d76e3423aa77ee9b10e093d2fc1efe472e67
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-06 16:50:04 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-06 17:47:38 +0000
security/palisade: Fix build with llvm15
Approved by: portmgr (blanket)
---
security/palisade/Makefile | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/security/palisade/Makefile b/security/palisade/Makefile
index 80b7ad07804a..bf72e4726979 100644
--- a/security/palisade/Makefile
+++ b/security/palisade/Makefile
@@ -48,4 +48,10 @@ OPENMP_CMAKE_BOOL= WITH_OPENMP
HEXL_CMAKE_BOOL= WITH_HEXL
HEXL_LIB_DEPENDS= libhexl.so:security/hexl
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
+CXXFLAGS+= -Wno-error=unused-but-set-variable
+.endif
+
+.include <bsd.port.post.mk>