diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2018-06-10 10:38:28 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2018-06-10 10:38:56 -0700 |
commit | f4e9ceacdae2de88a165e94b5c2f34eeb4115139 (patch) | |
tree | 7f155d52f97ab99e573cfcf5427bac1f557b4743 /src | |
parent | 0303fab396a818d796c7513457aa341ab703e8f3 (diff) | |
download | emacs-f4e9ceacdae2de88a165e94b5c2f34eeb4115139.tar.gz |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/keyboard.c | 4 |
1 files 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); |