From f4e9ceacdae2de88a165e94b5c2f34eeb4115139 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 10 Jun 2018 10:38:28 -0700 Subject: [PATCH] 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. --- src/keyboard.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.39.2