git: e61a868efa0c - main - games/exult{,-devel}: Silence cast warnings on clang >=16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 27 Dec 2023 00:14:04 UTC
The branch main has been updated by eduardo:
URL: https://cgit.FreeBSD.org/ports/commit/?id=e61a868efa0c33c77d1d3400df3f0e059f277dd7
commit e61a868efa0c33c77d1d3400df3f0e059f277dd7
Author: Nuno Teixeira <eduardo@FreeBSD.org>
AuthorDate: 2023-12-27 00:01:39 +0000
Commit: Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2023-12-27 00:13:28 +0000
games/exult{,-devel}: Silence cast warnings on clang >=16
Apply upstream recommendation to silence cast warnings observed on clang
16 and 17 until a fix is provided.
(impact: testport log size from ~70MB to ~700KB)
---
games/exult/Makefile | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/games/exult/Makefile b/games/exult/Makefile
index 0b069d866db1..c864e1986cc5 100644
--- a/games/exult/Makefile
+++ b/games/exult/Makefile
@@ -79,4 +79,12 @@ post-install-DOCS-on:
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
.endfor
+.include <bsd.port.options.mk>
+
+# Silence cast warnings from GTK callbacks:
+# https://github.com/exult/exult/issues/416
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CFLAGS+= -Wno-cast-function-type-strict
+.endif
+
.include <bsd.port.mk>