git: 02047af0bfea - main - devel/genht: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 25 Jun 2023 21:43:12 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=02047af0bfea363072f4dcd0cb129a0ea9ae49a5
commit 02047af0bfea363072f4dcd0cb129a0ea9ae49a5
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-25 20:43:57 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-25 21:42:44 +0000
devel/genht: Fix build with llvm16
Approved by: portmgr (blanket)
Sponsored by: The FreeBSD Foundation
---
devel/genht/Makefile | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/devel/genht/Makefile b/devel/genht/Makefile
index 97e7b7914bf8..502450972338 100644
--- a/devel/genht/Makefile
+++ b/devel/genht/Makefile
@@ -20,6 +20,12 @@ PORTEXAMPLES= Makefile example.c examplev.c
OPTIONS_DEFINE= EXAMPLES
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CFLAGS+= -Wno-error=incompatible-function-pointer-types
+.endif
+
post-install-EXAMPLES-on:
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
.for f in ${PORTEXAMPLES}