Building Surge-FX with GCC11 (-Werror) & JUCE-6.0.8 on Fedora 34 fails. Example:
/builddir/build/BUILD/surge/libs/juce-6.0.8/juce/modules/juce_core/text/juce_String.cpp:164:52: error: 'void operator delete ’ called on unallocated object ‘juce::emptyString’ [-Werror=free-nonheap-object]
164 | delete reinterpret_cast<char*> (b);
The build log contains more lines than I’m allowed to post here but it’s attached in the github issue referenced above.