On Wed, Jan 31, 2024 at 8:45 PM Christian Brabandt <cbli...@256bit.org> wrote:
>
> patch 9.1.0066: gcc complains about use of uninitialized var
>
> Commit: 
> https://github.com/vim/vim/commit/f2fb7dd3d3bb94fc51347c25d2829bb0a80c8719
> Author: Christian Brabandt <c...@256bit.org>
> Date:   Wed Jan 31 20:29:07 2024 +0100
>
>     patch 9.1.0066: gcc complains about use of uninitialized var
>
>     Problem:  gcc complains about use of uninitialized var
>               (Tony Mechelynck, after 9.1.0064)
>     Solution: initialize button to silence gcc
>
>     Signed-off-by: Christian Brabandt <c...@256bit.org>
>
After applying this patch (and all before, and changes to Filelist and
runtime/indent/racket.vim after it) I still see the following :

gui_gtk_x11.c: In function ‘scroll_event’:
gui_gtk_x11.c:2135:9: warning: ‘button’ may be used uninitialized
[-Wmaybe-uninitialized]
 2135 |         gui_send_mouse_event(button, (int)event->x, (int)event->y,
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 2136 |                 FALSE, vim_modifiers);
      |                 ~~~~~~~~~~~~~~~~~~~~~
gui_gtk_x11.c:2059:13: note: ‘button’ was declared here
 2059 |     int     button;
      |             ^~~~~~

(The problematic line is line 2059, not line 1988. I checked my
previous email, and there too it was line 2059. GTK2 vs GTK3 ? Or
something else ?)

Best regards,
Tony.

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/CAJkCKXs2E%3DJudd_LPzYcsV_bSV-Vnd1vzeE9d-Yrc7HPdU73eA%40mail.gmail.com.

Reply via email to