diff options
author | Christian Brabandt <cb@256bit.org> | 2024-01-31 20:29:07 +0100 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-01-31 20:29:07 +0100 |
commit | f2fb7dd3d3bb94fc51347c25d2829bb0a80c8719 (patch) | |
tree | 600512579a9434b509681d69e0656b64cb67fa65 /src/gui_gtk_x11.c | |
parent | ece71456897cd3f38d6979c8a31401ce94c03d14 (diff) |
patch 9.1.0066: gcc complains about use of uninitialized varv9.1.0066
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 <cb@256bit.org>
Diffstat (limited to 'src/gui_gtk_x11.c')
-rw-r--r-- | src/gui_gtk_x11.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui_gtk_x11.c b/src/gui_gtk_x11.c index 187123739e..a62b39c090 100644 --- a/src/gui_gtk_x11.c +++ b/src/gui_gtk_x11.c @@ -1985,7 +1985,7 @@ button_press_event(GtkWidget *widget, GdkEventButton *event, gpointer data UNUSED) { - int button; + int button = 0; // silence gcc int repeated_click = FALSE; int x, y; int_u vim_modifiers; |