git: 0c4f696c2e9a - main - math/libpoly: Unbreak on HEAD

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sat, 06 May 2023 14:39:17 UTC
The branch main has been updated by bofh:

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

commit 0c4f696c2e9ab85c5a38d9e1c64ed14b18074fd8
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-05-06 13:45:05 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-05-06 14:39:03 +0000

    math/libpoly: Unbreak on HEAD
    
    Approved by:    portmgr (blanket)
---
 math/libpoly/Makefile | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/math/libpoly/Makefile b/math/libpoly/Makefile
index 5f19e5aa3520..09cb3a214f0b 100644
--- a/math/libpoly/Makefile
+++ b/math/libpoly/Makefile
@@ -19,4 +19,10 @@ USE_LDCONFIG=	yes
 
 CMAKE_OFF=	LIBPOLY_BUILD_PYTHON_API LIBPOLY_BUILD_STATIC LIBPOLY_BUILD_STATIC_PIC
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400079
+CFLAGS+=       -Wno-error=unused-but-set-variable
+.endif
+
+.include <bsd.port.post.mk>