From: Paul Eggert Date: Wed, 24 Jun 2015 01:01:55 +0000 (-0700) Subject: Port selection info fix to clang X-Git-Tag: emacs-25.0.90~1661 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4fe5cb43d9c27da933b6e6a1beedb14eba4db4e9;p=emacs.git Port selection info fix to clang * src/keyboard.h (kbd_buffer_store_event_hold): Don't assume C11 semantics for alignof (Bug#20756). --- diff --git a/src/keyboard.h b/src/keyboard.h index 52780516340..1b489f3ba2e 100644 --- a/src/keyboard.h +++ b/src/keyboard.h @@ -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); }