aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2018-06-10 10:38:28 -0700
committerPaul Eggert2018-06-10 10:38:56 -0700
commitf4e9ceacdae2de88a165e94b5c2f34eeb4115139 (patch)
tree7f155d52f97ab99e573cfcf5427bac1f557b4743 /src
parent0303fab396a818d796c7513457aa341ab703e8f3 (diff)
downloademacs-f4e9ceacdae2de88a165e94b5c2f34eeb4115139.tar.gz
emacs-f4e9ceacdae2de88a165e94b5c2f34eeb4115139.zip
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.c4
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,
2924 { 2924 {
2925 Lisp_Object posn; 2925 Lisp_Object posn;
2926 2926
2927 posn = POSN_POSN (EVENT_START (c)); 2927 posn = POSN_POSN (xevent_start (c));
2928 /* Handle menu-bar events: 2928 /* Handle menu-bar events:
2929 insert the dummy prefix event `menu-bar'. */ 2929 insert the dummy prefix event `menu-bar'. */
2930 if (EQ (posn, Qmenu_bar) || EQ (posn, Qtool_bar)) 2930 if (EQ (posn, Qmenu_bar) || EQ (posn, Qtool_bar))
2931 { 2931 {
2932 /* Change menu-bar to (menu-bar) as the event "position". */ 2932 /* Change menu-bar to (menu-bar) as the event "position". */
2933 POSN_SET_POSN (EVENT_START (c), list1 (posn)); 2933 POSN_SET_POSN (xevent_start (c), list1 (posn));
2934 2934
2935 also_record = c; 2935 also_record = c;
2936 Vunread_command_events = Fcons (c, Vunread_command_events); 2936 Vunread_command_events = Fcons (c, Vunread_command_events);