ADLplug
ADLplug copied to clipboard
warning: ‘void operator delete [](void*)’ called on unallocated object ‘juce::emptyString’ [-Wfree-nonheap-object]
Whilst compiling the current code in master
in gentoo the QA checks in the package manager threw this warning:
QA Notice: Package triggers severe warnings which indicate that it
may exhibit random runtime failures.
/var/tmp/portage/media-plugins/adlplug-9999/work/adlplug-9999/thirdparty/JUCE/modules/juce_core/text/juce_String.cpp:164:52: warning: ‘void operator delete [](void*)’ called on unallocated object ‘juce::emptyString’ [-Wfree-nonheap-object]
Please do not file a Gentoo bug and instead report the above QA
issues directly to the upstream developers of this software.
Homepage: https://github.com/jpcima/ADLplug
Some context from the compile log:
/var/tmp/portage/media-plugins/adlplug-9999/work/adlplug-9999/thirdparty/JUCE/modules/juce_core/text/juce_String.cpp:164:52: warning: ‘void operator delete [](void*)’ called on unallocated object ‘juce::emptyString’ [-Wfree-nonheap-object]
164 | delete[] reinterpret_cast<char*> (b);
| ^
/var/tmp/portage/media-plugins/adlplug-9999/work/adlplug-9999/thirdparty/JUCE/modules/juce_core/text/juce_String.cpp: In member function ‘void juce::StringPairArray::set(const juce::String&, const juce::String&)’:
/var/tmp/portage/media-plugins/adlplug-9999/work/adlplug-9999/thirdparty/JUCE/modules/juce_core/text/juce_String.cpp:56:26: note: declared here
56 | static const EmptyString emptyString { 0x3fffffff, sizeof (String::CharPointerType::CharType), 0 };
| ^~~~~~~~~~~
Seems like some crappy code in JUCE?