Skip to content

Commit

Permalink
patch 9.0.1085: compiler warns for uninitialized variable
Browse files Browse the repository at this point in the history
Problem:    Compiler warns for uninitialized variable.
Solution:   Initialize the variable.  Remove unused function. (John Marriott)
  • Loading branch information
brammool committed Dec 20, 2022
1 parent 20b795e commit 9b8a365
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
15 changes: 1 addition & 14 deletions src/os_win32.c
Expand Up @@ -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
Expand Down Expand Up @@ -1735,7 +1734,7 @@ encode_mouse_event(dict_T *args, INPUT_RECORD *ir)
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"))
Expand Down Expand Up @@ -1878,18 +1877,6 @@ read_input_record_buffer(INPUT_RECORD* irEvents, int nMaxLength)
input_record_buffer.tail = NULL;
}
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

Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -695,6 +695,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1085,
/**/
1084,
/**/
Expand Down

0 comments on commit 9b8a365

Please sign in to comment.