From 0ae768d0d11a9b6a15e72226aae03423b177a874 Mon Sep 17 00:00:00 2001 From: ed Date: Wed, 11 Mar 2020 17:10:09 +0000 Subject: [PATCH] macOS: Fixed some unused variable warnings in the VST3 wrapper --- .../VST3/juce_VST3_Wrapper.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp b/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp index 8216ed67c0..3be9081511 100644 --- a/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp +++ b/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp @@ -956,7 +956,9 @@ private: std::atomic vst3IsPlaying { false }, inSetupProcessing { false }; + #if ! JUCE_MAC float lastScaleFactorReceived = 1.0f; + #endif void setupParameters() { @@ -1513,12 +1515,12 @@ private: }; std::unique_ptr cubase10Workaround; - #endif - + #else float editorScaleFactor = 1.0f; - #if JUCE_WINDOWS - WindowsHooks hooks; + #if JUCE_WINDOWS + WindowsHooks hooks; + #endif #endif //==============================================================================