patch 9.1.0067: gcc still complains about use of uninitialized var

Commit: 
https://github.com/vim/vim/commit/e1cd1fda6990d612bd8f27d78f4f5d747c2dc537
Author: Christian Brabandt <c...@256bit.org>
Date:   Wed Jan 31 22:10:50 2024 +0100

    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 <c...@256bit.org>

diff --git a/src/gui_gtk_x11.c b/src/gui_gtk_x11.c
index a62b39c09..dd0179ee0 100644
--- 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 = 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;
diff --git a/src/version.c b/src/version.c
index d12d4e108..c866d0938 100644
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    67,
 /**/
     66,
 /**/

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/E1rVI9j-0067wW-3n%40256bit.org.

Raspunde prin e-mail lui