patch 9.1.1641: a few compiler warnings are output

Commit: 
https://github.com/vim/vim/commit/486cffab3edefdca4daf064fc871c2f4a29bcb6d
Author: Yegappan Lakshmanan <yegap...@yahoo.com>
Date:   Sun Aug 17 21:02:44 2025 +0200

    patch 9.1.1641: a few compiler warnings are output
    
    Problem:  a few compiler warnings are output
    Solution: Fix compiler warnings (Yegappan Lakshmanan)
    
    closes: #18025
    
    Signed-off-by: Yegappan Lakshmanan <yegap...@yahoo.com>
    Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/src/clipboard.c b/src/clipboard.c
index 55fa0ad9f..5d2dec3af 100644
--- a/src/clipboard.c
+++ b/src/clipboard.c
@@ -2405,7 +2405,7 @@ poll_data:
        {
            if (ga_grow(&buf, 8192) == FAIL)
                break;
-           start = buf.ga_data + buf.ga_len;
+           start = (char_u *)buf.ga_data + buf.ga_len;
        }
     }
 
diff --git a/src/dosinst.c b/src/dosinst.c
index 3c2dc1572..76643e53b 100644
--- a/src/dosinst.c
+++ b/src/dosinst.c
@@ -2174,7 +2174,7 @@ init_homedir(void)
        if (homedrive != NULL
                   && strlen(homedrive) + strlen(homepath) < sizeof(buf))
        {
-           sprintf(buf, "%s%s", homedrive, homepath);
+           snprintf(buf, sizeof(buf), "%s%s", homedrive, homepath);
            if (buf[0] != NUL)
                var = buf;
        }
@@ -2202,7 +2202,7 @@ init_homedir(void)
            if (exp != NULL && *exp != NUL
                                && strlen(exp) + strlen(p) < sizeof(buf))
            {
-               sprintf(buf, "%s%s", exp, p + 1);
+               snprintf(buf, sizeof(buf), "%s%s", exp, p + 1);
                var = buf;
            }
        }
diff --git a/src/insexpand.c b/src/insexpand.c
index b4364be63..85284f2c6 100644
--- a/src/insexpand.c
+++ b/src/insexpand.c
@@ -7078,7 +7078,8 @@ ins_complete(int c, int enable_pum)
     int                insert_match;
     int                no_matches_found;
 #ifdef ELAPSED_FUNC
-    elapsed_T  compl_start_tv; // Timestamp when match collection starts
+    // Timestamp when match collection starts
+    elapsed_T  compl_start_tv = {0};
 #endif
 
     compl_direction = ins_compl_key2dir(c);
diff --git a/src/version.c b/src/version.c
index f890e8a68..610114d6d 100644
--- a/src/version.c
+++ b/src/version.c
@@ -719,6 +719,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1641,
 /**/
     1640,
 /**/

-- 
-- 
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 visit 
https://groups.google.com/d/msgid/vim_dev/E1uniqR-003NFS-27%40256bit.org.

Raspunde prin e-mail lui