summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2018-04-21 22:16:27 +0200
committerMichael Lutz <michi@icosahedron.de>2018-04-21 22:42:14 +0200
commite0ae67cefabb1116067c0220eb9ea831a512fa06 (patch)
tree4d30b9eeb21f51cfb4086c8df9ecbc832c354727 /src
parenta4df8bc246ac78d3e80edbfd8d7d0dad8308b1cb (diff)
downloadopenttd-e0ae67cefabb1116067c0220eb9ea831a512fa06.tar.xz
Fix: [OSX] Compiler warning about an unused NULL argument.
Diffstat (limited to 'src')
-rw-r--r--src/video/cocoa/cocoa_v.mm7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/video/cocoa/cocoa_v.mm b/src/video/cocoa/cocoa_v.mm
index 0368816ca..f8412e387 100644
--- a/src/video/cocoa/cocoa_v.mm
+++ b/src/video/cocoa/cocoa_v.mm
@@ -1349,7 +1349,12 @@ static const char *Utf8AdvanceByUtf16Units(const char *str, NSUInteger count)
NSPoint loc = [ driver->cocoaview convertPoint:[ [ aNotification object ] mouseLocationOutsideOfEventStream ] fromView:nil ];
BOOL inside = ([ driver->cocoaview hitTest:loc ] == driver->cocoaview);
- if (inside) [ driver->cocoaview mouseEntered:NULL ];
+ if (inside) {
+ /* We don't care about the event, but the compiler does. */
+ NSEvent *e = [ [ NSEvent alloc ] init ];
+ [ driver->cocoaview mouseEntered:e ];
+ [ e release ];
+ }
}
@end