projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8f4307
)
; Fix compilation warnings
author
Eli Zaretskii
<eliz@gnu.org>
Sun, 20 Feb 2022 16:42:33 +0000
(18:42 +0200)
committer
Eli Zaretskii
<eliz@gnu.org>
Sun, 20 Feb 2022 16:42:33 +0000
(18:42 +0200)
* src/keyboard.c (kbd_buffer_get_event):
* src/xterm.c (handle_one_xevent): Fix compiler warnings.
src/keyboard.c
patch
|
blob
|
history
src/xterm.c
patch
|
blob
|
history
diff --git
a/src/keyboard.c
b/src/keyboard.c
index 2aff0f1011d0f71a6edbd08ad77c4b3d6dd77e04..da8c6c54d859cd7f331b5fa7bc4fba88a536e6c5 100644
(file)
--- 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 01de3e27b96d45ec87420667de788cdad07faed8..22f27700f61d470b9ccd340fbef6f58a277110d3 100644
(file)
--- 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);