]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.0067: gcc still complains about use of uninitialized var v9.1.0067
authorChristian Brabandt <cb@256bit.org>
Wed, 31 Jan 2024 21:10:50 +0000 (22:10 +0100)
committerChristian Brabandt <cb@256bit.org>
Wed, 31 Jan 2024 21:12:57 +0000 (22:12 +0100)
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>
src/gui_gtk_x11.c
src/version.c

index a62b39c0905b60e0899f221fe7e65b78b17b7c28..dd0179ee056ba8c826c710e4524fe921a98fed12 100644 (file)
@@ -1985,7 +1985,7 @@ button_press_event(GtkWidget *widget,
                   GdkEventButton *event,
                   gpointer data UNUSED)
 {
-    int button = 0;  // silence gcc
+    int button;
     int repeated_click = FALSE;
     int x, y;
     int_u vim_modifiers;
@@ -2056,7 +2056,7 @@ scroll_event(GtkWidget *widget,
             GdkEventScroll *event,
             gpointer data UNUSED)
 {
-    int            button;
+    int            button = 0;  // silence gcc
     int_u   vim_modifiers;
 #if GTK_CHECK_VERSION(3,4,0)
     static double  acc_x, acc_y;
index d12d4e10831b45b0aa3d44643b65a626a11b52ea..c866d09386e2aae59a5c55ddd0befcd67f9361c1 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    67,
 /**/
     66,
 /**/