patch 9.2.0099: compiler warning about unused variable

Commit: 
https://github.com/vim/vim/commit/b2bc54534c79791a71d744a6e7d8197e42e2aade
Author: Christian Brabandt <[email protected]>
Date:   Tue Mar 3 18:37:25 2026 +0000

    patch 9.2.0099: compiler warning about unused variable
    
    Problem:  Coverity complains about uninitialized var, also gcc warns
              about a few other variables possibly being used uninitialized
              (Tony Mechelynck, after v9.2.0093)
    Solution: Initialize a few other variables.
    
    Coverity CID: 1683101
    
    closes: #19561
    
    Signed-off-by: Christian Brabandt <[email protected]>

diff --git a/src/highlight.c b/src/highlight.c
index 5ce3ea107..b22cda587 100644
--- a/src/highlight.c
+++ b/src/highlight.c
@@ -4294,6 +4294,7 @@ highlight_changed(void)
            // Allow several hl_flags to be combined, like "bu" for
            // bold-underlined.
            attr = 0;
+           id = 0;
            for ( ; *p && *p != ','; ++p)           // parse up to comma
            {
                if (VIM_ISWHITE(*p))                // ignore white space
diff --git a/src/screen.c b/src/screen.c
index 316b18b20..6a062ca26 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -4564,8 +4564,8 @@ draw_tabline(void)
     int                c;
     int                len;
     int                attr_sel;
-    int                attr_nosel;
-    int                attr_fill;
+    int                attr_nosel = 0;
+    int                attr_fill = 0;
     char_u     *p;
     int                room;
     int                use_sep_chars = (t_colors < 8
diff --git a/src/term.c b/src/term.c
index 026a12ecd..39f63fa95 100644
--- a/src/term.c
+++ b/src/term.c
@@ -6257,7 +6257,7 @@ check_termcode(
        {
            int  mouse_index_found = -1;
            int keypad_index_found = -1;
-           int keypad_slen_found;
+           int keypad_slen_found = 0;
 
            for (idx = 0; idx < tc_len; ++idx)
            {
diff --git a/src/version.c b/src/version.c
index dd38ef7d9..f2e546cb1 100644
--- a/src/version.c
+++ b/src/version.c
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    99,
 /**/
     98,
 /**/

-- 
-- 
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 [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1vxUjw-0059gX-Tv%40256bit.org.

Raspunde prin e-mail lui