From eb79d76891346d3e9101be8667afe98051fdbb58 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 2 Jul 2020 00:01:15 +0200 Subject: Fix cast alignment warnings on 32-bit ARM --- pugl/detail/x11.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'pugl/detail') diff --git a/pugl/detail/x11.c b/pugl/detail/x11.c index 2d74b68..ce9e289 100644 --- a/pugl/detail/x11.c +++ b/pugl/detail/x11.c @@ -960,8 +960,10 @@ handleTimerEvent(PuglWorld* world, XEvent xevent) for (size_t i = 0; i < world->impl->numTimers; ++i) { if (world->impl->timers[i].alarm == notify->alarm) { - const PuglEventTimer ev = {PUGL_TIMER, 0, world->impl->timers[i].id}; - puglDispatchEvent(world->impl->timers[i].view, (const PuglEvent*)&ev); + PuglEvent event = {{PUGL_TIMER, 0}}; + event.timer.id = world->impl->timers[i].id; + puglDispatchEvent(world->impl->timers[i].view, + (const PuglEvent*)&event); } } -- cgit v1.2.1