diff --git a/modules/juce_osc/osc/juce_OSCAddress.cpp b/modules/juce_osc/osc/juce_OSCAddress.cpp index 99e1358de6d5..8b6540ff89bc 100644 --- a/modules/juce_osc/osc/juce_OSCAddress.cpp +++ b/modules/juce_osc/osc/juce_OSCAddress.cpp @@ -283,14 +283,17 @@ namespace return c >= ' ' && c <= '~'; } - static bool isDisallowedChar (juce_wchar c) noexcept - { #if JUCE_ALLOW_SPECIAL_CHARS_IN_ADDRESS + static bool isDisallowedChar (juce_wchar) noexcept + { return false; + } #else - return CharPointer_ASCII( Traits::getDisallowedChars()).indexOf (c, false) >= 0; -#endif + static bool isDisallowedChar(juce_wchar c) noexcept + { + return CharPointer_ASCII(Traits::getDisallowedChars()).indexOf(c, false) >= 0; } +#endif static bool containsOnlyAllowedPrintableASCIIChars (const String& string) noexcept {