git: 9b0e49b745dd - main - lang/cim: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 24 Jun 2023 12:04:02 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=9b0e49b745ddc371072a6ca0aebb4861dcec1e04
commit 9b0e49b745ddc371072a6ca0aebb4861dcec1e04
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-24 11:20:14 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-24 12:03:42 +0000
lang/cim: Fix build with llvm16
Sponsored by: The FreeBSD Foundation
---
lang/cim/Makefile | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/lang/cim/Makefile b/lang/cim/Makefile
index bfda9b1218e3..d1ca3f019b0e 100644
--- a/lang/cim/Makefile
+++ b/lang/cim/Makefile
@@ -22,10 +22,14 @@ TEST_WRKSRC= ${WRKSRC}/test
INFO= cim
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
CFLAGS+= -Wno-error=int-conversion
.endif
-.include <bsd.port.post.mk>
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CFLAGS+= -Wno-error=incompatible-function-pointer-types
+.endif
+
+.include <bsd.port.mk>