0
0
mirror of https://github.com/vim/vim.git synced 2025-10-08 06:04:08 -04:00

patch 9.1.0067: gcc still complains about use of uninitialized var

Problem:  gcc still complains about use of uninitialized var
          ((Tony Mechelynck, after 9.1.0064/9.1.0066))
Solution: This time init the correct variable

Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Christian Brabandt
2024-01-31 22:10:50 +01:00
parent 83f627ff42
commit e1cd1fda69
2 changed files with 4 additions and 2 deletions

View File

@@ -1985,7 +1985,7 @@ button_press_event(GtkWidget *widget,
GdkEventButton *event, GdkEventButton *event,
gpointer data UNUSED) gpointer data UNUSED)
{ {
int button = 0; // silence gcc int button;
int repeated_click = FALSE; int repeated_click = FALSE;
int x, y; int x, y;
int_u vim_modifiers; int_u vim_modifiers;
@@ -2056,7 +2056,7 @@ scroll_event(GtkWidget *widget,
GdkEventScroll *event, GdkEventScroll *event,
gpointer data UNUSED) gpointer data UNUSED)
{ {
int button; int button = 0; // silence gcc
int_u vim_modifiers; int_u vim_modifiers;
#if GTK_CHECK_VERSION(3,4,0) #if GTK_CHECK_VERSION(3,4,0)
static double acc_x, acc_y; static double acc_x, acc_y;

View File

@@ -704,6 +704,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
67,
/**/ /**/
66, 66,
/**/ /**/