1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-29 10:18:30 +00:00

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)
This commit is contained in:
Nuno Teixeira 2023-12-27 00:01:39 +00:00
parent 7f99f1041c
commit e61a868efa

View File

@ -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>