diff --git a/modules/juce_audio_processors/processors/juce_AudioProcessor.cpp b/modules/juce_audio_processors/processors/juce_AudioProcessor.cpp index 64aaf531f0..fec7e9cc53 100644 --- a/modules/juce_audio_processors/processors/juce_AudioProcessor.cpp +++ b/modules/juce_audio_processors/processors/juce_AudioProcessor.cpp @@ -437,7 +437,9 @@ void AudioProcessor::validateParameter (AudioProcessorParameter* param) See the documentation for AudioProcessorParameter(int) for more information. */ #if JucePlugin_Build_AU - jassert (wrapperType == wrapperType_Undefined || param->getVersionHint() != 0); + static std::once_flag flag; + if (wrapperType == wrapperType_Undefined || param->getVersionHint() != 0) + std::call_once (flag, [] { jassertfalse; }); #endif }