forked from Lainports/freebsd-ports
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:
parent
7f99f1041c
commit
e61a868efa
1 changed files with 8 additions and 0 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue