From: Eli Zaretskii Date: Sun, 20 Feb 2022 16:42:33 +0000 (+0200) Subject: ; Fix compilation warnings X-Git-Tag: emacs-29.0.90~2197 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=92ce3b5d548df5640a2eae053e03e13350727c50;p=emacs.git ; Fix compilation warnings * src/keyboard.c (kbd_buffer_get_event): * src/xterm.c (handle_one_xevent): Fix compiler warnings. --- diff --git a/src/keyboard.c b/src/keyboard.c index 2aff0f1011d..da8c6c54d85 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -3893,6 +3893,8 @@ kbd_buffer_get_event (KBOARD **kbp, } #endif /* !defined HAVE_DBUS && !defined USE_FILE_NOTIFY && !defined THREADS_ENABLED */ + *kbp = current_kboard; + /* Wait until there is input available. */ for (;;) { diff --git a/src/xterm.c b/src/xterm.c index 01de3e27b96..22f27700f61 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -10123,7 +10123,9 @@ handle_one_xevent (struct x_display_info *dpyinfo, ptrdiff_t i; for (i = 0; i < nbytes; i++) - STORE_KEYSYM_FOR_DEBUG (copy_bufptr[i]); + { + STORE_KEYSYM_FOR_DEBUG (copy_bufptr[i]); + } inev.ie.kind = MULTIBYTE_CHAR_KEYSTROKE_EVENT; inev.ie.arg = make_unibyte_string ((char *) copy_bufptr, nbytes); @@ -11834,7 +11836,9 @@ handle_one_xevent (struct x_display_info *dpyinfo, } for (i = 0; i < nbytes; i++) - STORE_KEYSYM_FOR_DEBUG (copy_bufptr[i]); + { + STORE_KEYSYM_FOR_DEBUG (copy_bufptr[i]); + } inev.ie.kind = MULTIBYTE_CHAR_KEYSTROKE_EVENT; inev.ie.arg = make_unibyte_string (copy_bufptr, nbytes);