That was probably an old debugging variable
Applied, thanks!

[email protected], le sam. 04 oct. 2025 20:40:26 +0100, a ecrit:
> From: Diego Nieto Cid <[email protected]>
> 
>     ../../console-client/xkb/xkbtimer.c: In function 'xkb_generate_event':
>     ../../console-client/xkb/xkbtimer.c:95:20: warning: variable 'prevkc' set 
> but not used [-Wunused-but-set-variable]
>        95 |   static keycode_t prevkc = 0;
> ---
>  console-client/xkb/xkbtimer.c | 3 ---
>  1 file changed, 3 deletions(-)
> 
> diff --git a/console-client/xkb/xkbtimer.c b/console-client/xkb/xkbtimer.c
> index 5021f564..bb19b009 100644
> --- a/console-client/xkb/xkbtimer.c
> +++ b/console-client/xkb/xkbtimer.c
> @@ -92,11 +92,8 @@ key_enable (void *handle)
>  error_t
>  xkb_generate_event (keycode_t kc)
>  {
> -  static keycode_t prevkc = 0;
> -
>    keycode_t keycode = kc & 127;
>    process_keypress_event (keycode);
> -  prevkc = keycode;
>    return 0;
>  }
>  
> -- 
> 2.51.0
> 
> 

-- 
Samuel
How do I type "for i in *.dvi do xdvi i done" in a GUI?
(Discussion in comp.os.linux.misc on the intuitiveness of interfaces.)

Reply via email to