Signed-off-by: falkTX <falktx@falktx.com>pull/1775/head
| @@ -105,7 +105,10 @@ struct BundleLoader::PrivateData { | |||||
| if (ref == nullptr) | if (ref == nullptr) | ||||
| return; | return; | ||||
| #pragma clang diagnostic push | |||||
| #pragma clang diagnostic ignored "-Wdeprecated-declarations" | |||||
| CFBundleCloseBundleResourceMap(ref, refNum); | CFBundleCloseBundleResourceMap(ref, refNum); | ||||
| #pragma clang diagnostic pop | |||||
| if (CFGetRetainCount(ref) == 1) | if (CFGetRetainCount(ref) == 1) | ||||
| CFBundleUnloadExecutable(ref); | CFBundleUnloadExecutable(ref); | ||||
| @@ -130,7 +133,10 @@ struct BundleLoader::PrivateData { | |||||
| return false; | return false; | ||||
| } | } | ||||
| #pragma clang diagnostic push | |||||
| #pragma clang diagnostic ignored "-Wdeprecated-declarations" | |||||
| refNum = CFBundleOpenBundleResourceMap(ref); | refNum = CFBundleOpenBundleResourceMap(ref); | ||||
| #pragma clang diagnostic pop | |||||
| return true; | return true; | ||||
| } | } | ||||
| }; | }; | ||||
| @@ -327,7 +327,14 @@ bool startProcess(const char* const argv[], pid_t& pidinst) noexcept | |||||
| const CarlaScopedEnvVar sev1("LD_LIBRARY_PATH", nullptr); | const CarlaScopedEnvVar sev1("LD_LIBRARY_PATH", nullptr); | ||||
| const CarlaScopedEnvVar sev2("LD_PRELOAD", nullptr); | const CarlaScopedEnvVar sev2("LD_PRELOAD", nullptr); | ||||
| #ifdef __clang__ | |||||
| #pragma clang diagnostic push | |||||
| #pragma clang diagnostic ignored "-Wdeprecated-declarations" | |||||
| #endif | |||||
| const pid_t ret = pidinst = vfork(); | const pid_t ret = pidinst = vfork(); | ||||
| #ifdef __clang__ | |||||
| #pragma clang diagnostic pop | |||||
| #endif | |||||
| switch (ret) | switch (ret) | ||||
| { | { | ||||
| @@ -641,7 +641,11 @@ public: | |||||
| fView = [[NSView new]retain]; | fView = [[NSView new]retain]; | ||||
| CARLA_SAFE_ASSERT_RETURN(fView != nullptr,) | CARLA_SAFE_ASSERT_RETURN(fView != nullptr,) | ||||
| #ifdef __MAC_10_12 | |||||
| uint style = NSWindowStyleMaskClosable | NSWindowStyleMaskTitled; | |||||
| #else | |||||
| uint style = NSClosableWindowMask | NSTitledWindowMask; | uint style = NSClosableWindowMask | NSTitledWindowMask; | ||||
| #endif | |||||
| /* | /* | ||||
| if (isResizable) | if (isResizable) | ||||
| style |= NSResizableWindowMask; | style |= NSResizableWindowMask; | ||||