Browse Source

ignore some macos deprecation warnings

Signed-off-by: falkTX <falktx@falktx.com>
pull/1775/head
falkTX 2 years ago
parent
commit
22b5176486
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
3 changed files with 17 additions and 0 deletions
  1. +6
    -0
      source/utils/CarlaMacUtils.cpp
  2. +7
    -0
      source/utils/CarlaPipeUtils.cpp
  3. +4
    -0
      source/utils/CarlaPluginUI.cpp

+ 6
- 0
source/utils/CarlaMacUtils.cpp View File

@@ -105,7 +105,10 @@ struct BundleLoader::PrivateData {
if (ref == nullptr)
return;

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
CFBundleCloseBundleResourceMap(ref, refNum);
#pragma clang diagnostic pop

if (CFGetRetainCount(ref) == 1)
CFBundleUnloadExecutable(ref);
@@ -130,7 +133,10 @@ struct BundleLoader::PrivateData {
return false;
}

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
refNum = CFBundleOpenBundleResourceMap(ref);
#pragma clang diagnostic pop
return true;
}
};


+ 7
- 0
source/utils/CarlaPipeUtils.cpp View File

@@ -327,7 +327,14 @@ bool startProcess(const char* const argv[], pid_t& pidinst) noexcept
const CarlaScopedEnvVar sev1("LD_LIBRARY_PATH", 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();
#ifdef __clang__
#pragma clang diagnostic pop
#endif

switch (ret)
{


+ 4
- 0
source/utils/CarlaPluginUI.cpp View File

@@ -641,7 +641,11 @@ public:
fView = [[NSView new]retain];
CARLA_SAFE_ASSERT_RETURN(fView != nullptr,)

#ifdef __MAC_10_12
uint style = NSWindowStyleMaskClosable | NSWindowStyleMaskTitled;
#else
uint style = NSClosableWindowMask | NSTitledWindowMask;
#endif
/*
if (isResizable)
style |= NSResizableWindowMask;


Loading…
Cancel
Save