changeset 31505:dc282943639c v9.0.1085

patch 9.0.1085: compiler warns for uninitialized variable Commit: https://github.com/vim/vim/commit/9b8a365d019bb948efba5b5276d52bdd99e15d05 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Dec 20 20:47:28 2022 +0000 patch 9.0.1085: compiler warns for uninitialized variable Problem: Compiler warns for uninitialized variable. Solution: Initialize the variable. Remove unused function. (John Marriott)
author Bram Moolenaar <Bram@vim.org>
date Tue, 20 Dec 2022 22:00:04 +0100
parents 19e5fba4fffb
children 38e11c4ab41f
files src/os_win32.c src/version.c
diffstat 2 files changed, 3 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/src/os_win32.c
+++ b/src/os_win32.c
@@ -193,7 +193,6 @@ typedef struct input_record_buffer_S
     int length;
 } input_record_buffer_T;
 static input_record_buffer_T input_record_buffer;
-static int peek_input_record_buffer(INPUT_RECORD* irEvents, int nMaxLength);
 static int read_input_record_buffer(INPUT_RECORD* irEvents, int nMaxLength);
 static int write_input_record_buffer(INPUT_RECORD* irEvents, int nLength);
 #endif
@@ -1735,7 +1734,7 @@ encode_mouse_event(dict_T *args, INPUT_R
     int		row;
     int		col;
     int		repeated_click;
-    int_u	mods;
+    int_u	mods = 0;
     int		move;
 
     if (!dict_has_key(args, "row") || !dict_has_key(args, "col"))
@@ -1879,18 +1878,6 @@ read_input_record_buffer(INPUT_RECORD* i
     }
     return nCount;
 }
-    static int
-peek_input_record_buffer(INPUT_RECORD* irEvents, int nMaxLength)
-{
-    int nCount = 0;
-    input_record_buffer_node_T *temp =  input_record_buffer.head;
-    while (nCount < nMaxLength && temp != NULL)
-    {
-	irEvents[nCount++] = temp->ir;
-	temp = temp->next;
-    }
-    return nCount;
-}
 #endif // !FEAT_GUI_MSWIN || VIMDLL
 
 #ifdef FEAT_EVAL
--- a/src/version.c
+++ b/src/version.c
@@ -696,6 +696,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1085,
+/**/
     1084,
 /**/
     1083,