emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 92ce3b5d54 1/2: ; Fix compilation warnings


From: Eli Zaretskii
Subject: master 92ce3b5d54 1/2: ; Fix compilation warnings
Date: Sun, 20 Feb 2022 11:43:49 -0500 (EST)

branch: master
commit 92ce3b5d548df5640a2eae053e03e13350727c50
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    ; Fix compilation warnings
    
    * src/keyboard.c (kbd_buffer_get_event):
    * src/xterm.c (handle_one_xevent): Fix compiler warnings.
---
 src/keyboard.c | 2 ++
 src/xterm.c    | 8 ++++++--
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/keyboard.c b/src/keyboard.c
index 2aff0f1011..da8c6c54d8 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 01de3e27b9..22f27700f6 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);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]