1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Build: Fix arm64 gcc build warnings

This commit is contained in:
reuk 2021-10-08 15:04:21 +01:00
parent 68a727fa19
commit b41aeec9b1
No known key found for this signature in database
GPG key ID: 9ADCD339CFC98A11

View file

@ -234,7 +234,7 @@ void XWindowSystemUtilities::XSettings::update()
CARD32 nSettings;
};
const auto* header = reinterpret_cast<const Header*> (data);
const auto* header = unalignedPointerCast<const Header*> (data);
const auto headerSerial = (int) header->serial;
increment (sizeof (Header));
@ -3630,7 +3630,7 @@ void XWindowSystem::propertyNotifyEvent (LinuxComponentPeer* peer, const XProper
if (! (prop.success && prop.actualFormat == 32 && prop.actualType == XA_ATOM))
return false;
const auto data = reinterpret_cast<const long*> (prop.data);
const auto* data = unalignedPointerCast<const long*> (prop.data);
const auto end = data + prop.numItems;
return std::find (data, end, atoms.windowStateHidden) != end;