Commit 4fe5cb43 authored by Paul Eggert's avatar Paul Eggert
Browse files

Port selection info fix to clang

* src/keyboard.h (kbd_buffer_store_event_hold):
Don't assume C11 semantics for alignof (Bug#20756).
parent 1552e673
......@@ -458,7 +458,8 @@ kbd_buffer_store_event_hold (struct input_event *event,
struct input_event *hold_quit)
union buffered_input_event *ev = (union buffered_input_event *) event;
verify (sizeof *event == sizeof *ev && alignof (*event) == alignof (*ev));
verify (alignof (struct input_event) == alignof (union buffered_input_event)
&& sizeof (struct input_event) == sizeof (union buffered_input_event));
return kbd_buffer_store_buffered_event ((union buffered_input_event *) event,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment