summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--games/exult/Makefile8
1 files changed, 8 insertions, 0 deletions
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>