mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Fix GCC 12 compiler warnings
This commit is contained in:
parent
ff534baf5f
commit
a28597c3c9
2 changed files with 4 additions and 1 deletions
|
|
@ -325,7 +325,10 @@ private:
|
|||
WrappedIterator (const ListenerList& listToIterate, WrappedIterator*& listHeadIn)
|
||||
: it (listToIterate), listHead (listHeadIn), next (listHead)
|
||||
{
|
||||
// GCC 12.2 with O1 and above gets confused here
|
||||
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wdangling-pointer")
|
||||
listHead = this;
|
||||
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
||||
}
|
||||
|
||||
~WrappedIterator()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue