]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.2.0760: Compiler warning for using potentially uninitialized var v9.2.0760
authorChristian Brabandt <cb@256bit.org>
Wed, 1 Jul 2026 18:55:04 +0000 (18:55 +0000)
committerChristian Brabandt <cb@256bit.org>
Wed, 1 Jul 2026 18:55:04 +0000 (18:55 +0000)
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 <cb@256bit.org>
src/popupwin.c
src/version.c

index d30cc33e17ff23e1a8eaed02d2349df81c2b02b5..849849f8279076e9648be31fd80d7028339bd4d4 100644 (file)
@@ -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))
index 33942d5b9236d49c901e38595de37564fab9b2f9..724eda425140ba25866f9fd21de4a946db8d5c90 100644 (file)
@@ -759,6 +759,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    760,
 /**/
     759,
 /**/