From f2fb7dd3d3bb94fc51347c25d2829bb0a80c8719 Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Wed, 31 Jan 2024 20:29:07 +0100 Subject: [PATCH] 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 --- src/gui_gtk_x11.c | 2 +- src/version.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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; diff --git a/src/version.c b/src/version.c index b361a9caa0..d12d4e1083 100644 --- a/src/version.c +++ b/src/version.c @@ -704,6 +704,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 66, /**/ 65, /**/