Mercurial > vim
changeset 34253:efc8334c1d77 v9.1.0067
patch 9.1.0067: gcc still complains about use of uninitialized var
Commit: https://github.com/vim/vim/commit/e1cd1fda6990d612bd8f27d78f4f5d747c2dc537
Author: Christian Brabandt <cb@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 <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 31 Jan 2024 22:30:03 +0100 |
parents | 93b691c81dc0 |
children | 3598b28ed952 |
files | src/gui_gtk_x11.c src/version.c |
diffstat | 2 files changed, 4 insertions(+), 2 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 = 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;