emacs-devel
[Top][All Lists]
Advanced

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

Re: master ad2d50d762: Fix last change in xterm.c


From: Eli Zaretskii
Subject: Re: master ad2d50d762: Fix last change in xterm.c
Date: Sun, 20 Feb 2022 18:43:29 +0200

> From: Lars Ingebrigtsen <larsi@gnus.org>
> Date: Sun, 20 Feb 2022 17:27:21 +0100
> Cc: Po Lu <luangruo@yahoo.com>
> 
> I have no idea whether it's this change that caused it or not, but:
> 
> xterm.c: In function ‘handle_one_xevent’:
> xterm.c:8880:3: warning: macro expands to multiple statements 
> [-Wmultistatement-macros]
>  8880 |   if (temp_index == ARRAYELTS (temp_buffer))                          
> |   ^~
> xterm.c:8880:3: note: in definition of macro ‘STORE_KEYSYM_FOR_DEBUG’
>  8880 |   if (temp_index == ARRAYELTS (temp_buffer))                          
> |   ^~
> xterm.c:10125:13: note: some parts of macro expansion are not guarded by this 
> ‘for’ clause
> 10125 |             for (i = 0; i < nbytes; i++)
>       |             ^~~
> keyboard.c: In function ‘read_event_from_main_queue’:
> keyboard.c:2251:22: warning: ‘kb’ may be used uninitialized in this function 
> [-Wmaybe-uninitialized]
>  2251 |       current_kboard = kb;
>       |       ~~~~~~~~~~~~~~~^~~~
> 
> I get these warnings when compiling now with nativecomp, and I don't
> think they were there a couple of days ago?  But I may be mistaken.

I've tried to fix these now.



reply via email to

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