changeset 34249:d4d230cdfbca v9.1.0066

patch 9.1.0066: gcc complains about use of uninitialized var Commit: https://github.com/vim/vim/commit/f2fb7dd3d3bb94fc51347c25d2829bb0a80c8719 Author: Christian Brabandt <cb@256bit.org> Date: Wed Jan 31 20:29:07 2024 +0100 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 <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Wed, 31 Jan 2024 20:45:03 +0100
parents 2d13a3713a05
children 15e73304000b
files src/gui_gtk_x11.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;
--- a/src/version.c
+++ b/src/version.c
@@ -705,6 +705,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    66,
+/**/
     65,
 /**/
     64,