From 393af9d916df1cdc9de33b29129a7f6fbafe233d Mon Sep 17 00:00:00 2001 From: gxalpha Date: Tue, 19 Jul 2022 14:54:03 +0200 Subject: [PATCH] mac-syphon: Ignore 10.13-only deprecation warning --- plugins/mac-syphon/syphon.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/mac-syphon/syphon.m b/plugins/mac-syphon/syphon.m index 20e24c25c..c3a3b35b0 100644 --- a/plugins/mac-syphon/syphon.m +++ b/plugins/mac-syphon/syphon.m @@ -678,7 +678,11 @@ static inline void launch_syphon_inject_internal() NSString *path = get_inject_application_path(); NSWorkspace *ws = [NSWorkspace sharedWorkspace]; if (path) + /* This is only ever relevant on macOS 10.13 */ +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" [ws launchApplication:path]; +#pragma clang diagnostic pop } static bool launch_syphon_inject(obs_properties_t *props, obs_property_t *prop,