Skip to content

Commit f2fb7dd

Browse files
committed
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 <[email protected]>
1 parent ece7145 commit f2fb7dd

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/gui_gtk_x11.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1985,7 +1985,7 @@ button_press_event(GtkWidget *widget,
19851985
GdkEventButton *event,
19861986
gpointer data UNUSED)
19871987
{
1988-
int button;
1988+
int button = 0; // silence gcc
19891989
int repeated_click = FALSE;
19901990
int x, y;
19911991
int_u vim_modifiers;

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,8 @@ static char *(features[]) =
704704

705705
static int included_patches[] =
706706
{ /* Add new patch number below this line */
707+
/**/
708+
66,
707709
/**/
708710
65,
709711
/**/

0 commit comments

Comments
 (0)