Small fix needed


I get this error compiling the tip with Visual Studio:

juce_win32_windowing.cpp(438) : warning C4715: 'juce::callFunctionIfNotLocked' : not all control paths return a value

and indeed, the body of that function is:

static void* callFunctionIfNotLocked (MessageCallbackFunction* callback, void* userData) { if (MessageManager::getInstance()->currentThreadHasLockedMessageManager()) return callback (userData); else MessageManager::getInstance()->callFunctionOnMessageThread (callback, userData); }

I think this is easily fixed adding the missing return statement in the else block.


Yes, sorry - I know about this, just need to do a check-in of my latest tweaks…