Skip to content

Commit

Permalink
patch 8.2.5125: MS-Windows: warnings from MinGW compiler
Browse files Browse the repository at this point in the history
Problem:    MS-Windows: warnings from MinGW compyler.
Solution:   Use "volatile". (Yasuhiro Matsumoto, closes #10589)  Initialize
            variable.
  • Loading branch information
mattn authored and brammool committed Jun 18, 2022
1 parent 620aa8e commit 09f68a5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/map.c
Expand Up @@ -1273,7 +1273,7 @@ ExpandMappings(
int i;
int fuzzy;
int match;
int score;
int score = 0;
fuzmatch_str_T *fuzmatch;

fuzzy = cmdline_fuzzy_complete(pat);
Expand Down
2 changes: 1 addition & 1 deletion src/os_win32.c
Expand Up @@ -8378,7 +8378,7 @@ stop_timeout(void)
* This function is not expected to fail, but if it does it still returns a
* valid flag pointer; the flag will remain stuck at zero.
*/
const int *
volatile int *
start_timeout(long msec)
{
BOOL ret;
Expand Down
2 changes: 1 addition & 1 deletion src/proto/os_win32.pro
Expand Up @@ -85,5 +85,5 @@ int get_conpty_fix_type(void);
void resize_console_buf(void);
char *GetWin32Error(void);
void stop_timeout(void);
const int *start_timeout(long msec);
volatile int *start_timeout(long msec);
/* vim: set ft=c : */
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -734,6 +734,8 @@ static char *(features[]) =

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

0 comments on commit 09f68a5

Please sign in to comment.