Fix/silence mac build warnings

As per Xcode 12.4 you can at least do a warning-free incremental build
with these changes. There are still plenty of warnings in a full build
(mostly from thirdparty components) but with these changes you can at
least develop on mac and see if/when you've added any new warnings when
doing incremental builds.
This commit is contained in:
Tom Sutcliffe 2021-04-11 15:53:22 +01:00 committed by phkahler
parent 56719415de
commit b65a0be3d6
2 changed files with 3 additions and 1 deletions

View File

@ -117,6 +117,7 @@ if(WIN32)
${SPACEWARE_LIBRARIES})
elseif(APPLE)
add_compile_options(
-DGL_SILENCE_DEPRECATION
-fobjc-arc)
list(APPEND platform_SOURCES

View File

@ -286,7 +286,8 @@ public:
}
void PopUp() override {
[NSMenu popUpContextMenu:nsMenu withEvent:[NSApp currentEvent] forView:nil];
NSEvent* event = [NSApp currentEvent];
[NSMenu popUpContextMenu:nsMenu withEvent:event forView:event.window.contentView];
}
void Clear() override {