From 6ad5489d015fd95af470ebbf4af09ae7512fe9a1 Mon Sep 17 00:00:00 2001 From: Michael Lutz Date: Sat, 2 Jan 2021 17:40:54 +0100 Subject: Codechange: [OSX] Silence some annoying warnings. --- src/video/cocoa/cocoa_v.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/video') diff --git a/src/video/cocoa/cocoa_v.mm b/src/video/cocoa/cocoa_v.mm index d8178699e..6031fa34c 100644 --- a/src/video/cocoa/cocoa_v.mm +++ b/src/video/cocoa/cocoa_v.mm @@ -70,7 +70,7 @@ static bool ModeSorter(const OTTD_Point &p1, const OTTD_Point &p2) static void QZ_GetDisplayModeInfo(CFArrayRef modes, CFIndex i, int &bpp, uint16 &width, uint16 &height) { - CGDisplayModeRef mode = (CGDisplayModeRef)CFArrayGetValueAtIndex(modes, i); + CGDisplayModeRef mode = static_cast(const_cast(CFArrayGetValueAtIndex(modes, i))); width = (uint16)CGDisplayModeGetWidth(mode); height = (uint16)CGDisplayModeGetHeight(mode); -- cgit v1.2.3-70-g09d2