From 4c19b9fac555c8a9328c55abf49b63de117d56b4 Mon Sep 17 00:00:00 2001 From: ed Date: Thu, 7 Mar 2019 11:41:59 +0000 Subject: [PATCH] Fixed an unused variable in the VST3 wrapper --- modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 8f98e7cc58..8c1b6ae089 100644 --- a/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp +++ b/modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp @@ -1537,7 +1537,7 @@ public: { if (pluginInstance->getBypassParameter() == nullptr) { - if (auto* bypassParam = comPluginInstance->getBypassParameter()) + if (comPluginInstance->getBypassParameter() != nullptr) { auto privateData = ValueTree::readFromData (data, static_cast (sizeInBytes)); setBypassed (static_cast (privateData.getProperty ("Bypass", var (false))));