1
0
Fork 0
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:
Tom Poole 2023-01-31 12:53:50 +00:00
parent ff534baf5f
commit a28597c3c9
2 changed files with 4 additions and 1 deletions

View file

@ -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()