1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-09 23:34:20 +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

@ -143,7 +143,7 @@ struct b2Vec2
return b2Vec2(-y, x); return b2Vec2(-y, x);
} }
float32 x, y; float32 x{}, y{};
}; };
/// A 2D column vector with 3 elements. /// A 2D column vector with 3 elements.

View file

@ -325,7 +325,10 @@ private:
WrappedIterator (const ListenerList& listToIterate, WrappedIterator*& listHeadIn) WrappedIterator (const ListenerList& listToIterate, WrappedIterator*& listHeadIn)
: it (listToIterate), listHead (listHeadIn), next (listHead) : 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; listHead = this;
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
} }
~WrappedIterator() ~WrappedIterator()