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:
parent
68a727fa19
commit
b41aeec9b1
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue