]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.0066: gcc complains about use of uninitialized var v9.1.0066
authorChristian Brabandt <cb@256bit.org>
Wed, 31 Jan 2024 19:29:07 +0000 (20:29 +0100)
committerChristian Brabandt <cb@256bit.org>
Wed, 31 Jan 2024 19:29:07 +0000 (20:29 +0100)
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>
src/gui_gtk_x11.c
src/version.c

index 187123739edccda6ef7338ea35bafb6eb15bdce6..a62b39c0905b60e0899f221fe7e65b78b17b7c28 100644 (file)
@@ -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;
index b361a9caa0a9a37135d58bf575dffce9770a5eb1..d12d4e10831b45b0aa3d44643b65a626a11b52ea 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    66,
 /**/
     65,
 /**/