Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

warning: ‘void operator delete [](void*)’ called on unallocated object ‘juce::emptyString’ [-Wfree-nonheap-object] #85

Open
simonvanderveldt opened this issue Feb 22, 2022 · 0 comments

Comments

@simonvanderveldt
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant