From d65efedc54c1cbcbdb456187ae41c5aae7c499a7 Mon Sep 17 00:00:00 2001 From: hogliux Date: Tue, 3 Nov 2015 17:36:14 +0000 Subject: [PATCH] Fix bug when building VST hosts in Release mode --- .../format_types/juce_VSTPluginFormat.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) mode change 100644 => 100755 modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp diff --git a/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp b/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp old mode 100644 new mode 100755 index b37993fc81..bb97bffed1 --- a/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp +++ b/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp @@ -944,7 +944,9 @@ public: // if you get an assertion here then your plug-in claims it supports double precision // but returns an error when we try to change the precision - jassert (dispatch (effSetProcessPrecision, 0, (VstIntPtr) vstPrecision, 0, 0) > 0); + VstIntPtr err = dispatch (effSetProcessPrecision, 0, (VstIntPtr) vstPrecision, 0, 0); + jassert (err > 0); + ignoreUnused (err); } tempBuffer.setSize (jmax (1, effect->numOutputs), samplesPerBlockExpected);