DPF

DISTRHO Plugin Framework
Log | Files | Refs | Submodules | README | LICENSE

commit b49126af90b939681c0b40c8173c5ff1b7c6d751
parent 7eb5b811d17d1140cea713f365079942db1c4c22
Author: falkTX <falktx@falktx.com>
Date:   Mon,  7 Jun 2021 10:33:57 +0100

Fix macOS warnings

Diffstat:
Mdgl/src/pugl.cpp | 3+++
Mdistrho/src/DistrhoUIInternal.hpp | 6+-----
2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/dgl/src/pugl.cpp b/dgl/src/pugl.cpp @@ -110,6 +110,8 @@ START_NAMESPACE_DGL # define PuglWrapperView DISTRHO_MACOS_NAMESPACE_MACRO(DGL_NAMESPACE, PuglWrapperView) # define PuglWindow DISTRHO_MACOS_NAMESPACE_MACRO(DGL_NAMESPACE, PuglWindow) # endif +# pragma clang diagnostic push +# pragma clang diagnostic ignored "-Wdeprecated-declarations" # import "pugl-upstream/src/mac.m" # import "pugl-upstream/src/mac_stub.m" # ifdef DGL_CAIRO @@ -121,6 +123,7 @@ START_NAMESPACE_DGL # ifdef DGL_VULKAN # import "pugl-upstream/src/mac_vulkan.m" # endif +# pragma clang diagnostic pop #elif defined(DISTRHO_OS_WINDOWS) # include "pugl-upstream/src/win.c" # include "pugl-upstream/src/win_stub.c" diff --git a/distrho/src/DistrhoUIInternal.hpp b/distrho/src/DistrhoUIInternal.hpp @@ -45,9 +45,6 @@ class UIExporter UI* ui; UI::PrivateData* uiData; - // prevent resize recursion - bool changingSizeRecursionCheck; - // ------------------------------------------------------------------- public: @@ -66,8 +63,7 @@ public: const uint32_t bgColor = 0, const uint32_t fgColor = 0xffffffff) : ui(nullptr), - uiData(new UI::PrivateData()), - changingSizeRecursionCheck(false) + uiData(new UI::PrivateData()) { uiData->sampleRate = sampleRate; uiData->dspPtr = dspPtr;