summaryrefslogtreecommitdiffstats
path: root/src/gui_gtk_x11.c
diff options
context:
space:
mode:
authorChristian Brabandt <cb@256bit.org>2024-01-31 20:29:07 +0100
committerChristian Brabandt <cb@256bit.org>2024-01-31 20:29:07 +0100
commitf2fb7dd3d3bb94fc51347c25d2829bb0a80c8719 (patch)
tree600512579a9434b509681d69e0656b64cb67fa65 /src/gui_gtk_x11.c
parentece71456897cd3f38d6979c8a31401ce94c03d14 (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.c2
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;