git: 4999e18d9032 - main - games/exult{,-devel}: Add missing OSVERSIONs to e61a868

From: Nuno Teixeira <eduardo_at_FreeBSD.org>
Date: Wed, 27 Dec 2023 19:12:19 UTC
The branch main has been updated by eduardo:

URL: https://cgit.FreeBSD.org/ports/commit/?id=4999e18d903259c9c297e2029b70a09eb95380fa

commit 4999e18d903259c9c297e2029b70a09eb95380fa
Author:     Nuno Teixeira <eduardo@FreeBSD.org>
AuthorDate: 2023-12-27 18:56:58 +0000
Commit:     Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2023-12-27 19:12:06 +0000

    games/exult{,-devel}: Add missing OSVERSIONs to e61a868
    
    Add missing OSVERSIONs from >=1302507 to <1400000 that uses clang 16.
    
    Reported by:    bofh
---
 games/exult/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/games/exult/Makefile b/games/exult/Makefile
index c864e1986cc5..de14ff2865ce 100644
--- a/games/exult/Makefile
+++ b/games/exult/Makefile
@@ -81,9 +81,9 @@ post-install-DOCS-on:
 
 .include <bsd.port.options.mk>
 
-# Silence cast warnings from GTK callbacks:
+# Silence cast warnings from GTK callbacks in clang >=16
 # https://github.com/exult/exult/issues/416
-.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 ))
 CFLAGS+=	-Wno-cast-function-type-strict
 .endif