Port selection info fix to clang
* src/keyboard.h (kbd_buffer_store_event_hold): Don't assume C11 semantics for alignof (Bug#20756).
This commit is contained in:
parent
1552e67373
commit
4fe5cb43d9
1 changed files with 2 additions and 1 deletions
|
@ -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,
|
||||
hold_quit);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue