From: Paul Eggert Date: Sun, 10 Jun 2018 17:38:28 +0000 (-0700) Subject: Pacify gcc -Wnull-dereference some more X-Git-Tag: emacs-27.0.90~4889 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f4e9ceacdae2de88a165e94b5c2f34eeb4115139;p=emacs.git Pacify gcc -Wnull-dereference some more * src/keyboard.c (read_char): Use xevent_start in a couple more places where it is safe. This is needed with --enable-gcc-warnings --enable-checking on Fedora 28 x86-64. --- diff --git a/src/keyboard.c b/src/keyboard.c index d498ac3feea..c90fbd302fa 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -2924,13 +2924,13 @@ read_char (int commandflag, Lisp_Object map, { Lisp_Object posn; - posn = POSN_POSN (EVENT_START (c)); + posn = POSN_POSN (xevent_start (c)); /* Handle menu-bar events: insert the dummy prefix event `menu-bar'. */ if (EQ (posn, Qmenu_bar) || EQ (posn, Qtool_bar)) { /* Change menu-bar to (menu-bar) as the event "position". */ - POSN_SET_POSN (EVENT_START (c), list1 (posn)); + POSN_SET_POSN (xevent_start (c), list1 (posn)); also_record = c; Vunread_command_events = Fcons (c, Vunread_command_events);