Commit: patch 9.2.0760: Compiler warning for using potentially uninitialized var

1 view
Skip to first unread message

Christian Brabandt

unread,
3:15 PM (6 hours ago) 3:15 PM
to vim...@googlegroups.com
patch 9.2.0760: Compiler warning for using potentially uninitialized var

Commit: https://github.com/vim/vim/commit/1e6a249d573e53f9899fe476b0570f62734517fc
Author: Christian Brabandt <c...@256bit.org>
Date: Wed Jul 1 18:55:04 2026 +0000

patch 9.2.0760: Compiler warning for using potentially uninitialized var

Problem: Compiler warning for using potentially uninitialized var
(John Marriott, after v9.2.0612)
Solution: Initialize the variables at declaration

related: #20136

Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/src/popupwin.c b/src/popupwin.c
index d30cc33e1..849849f82 100644
--- a/src/popupwin.c
+++ b/src/popupwin.c
@@ -6846,7 +6846,7 @@ popup_image_gui_clip(
popup_invalidate_prev_image_rect(win_T *wp, popup_clip_T *cl)
{
int old_row, old_col, old_cells_w, old_cells_h;
- int new_row, new_col, new_cells_w, new_cells_h;
+ int new_row = 0, new_col = 0, new_cells_w = 0, new_cells_h = 0;
int rr;

# if !(defined(FEAT_IMAGE_SIXEL) || defined(FEAT_IMAGE_KITTY))
diff --git a/src/version.c b/src/version.c
index 33942d5b9..724eda425 100644
--- a/src/version.c
+++ b/src/version.c
@@ -759,6 +759,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 760,
/**/
759,
/**/
Reply all
Reply to author
Forward
0 new messages