0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

patch 8.2.5125: MS-Windows: warnings from MinGW compiler

Problem:    MS-Windows: warnings from MinGW compyler.
Solution:   Use "volatile". (Yasuhiro Matsumoto, closes #10589)  Initialize
            variable.
This commit is contained in:
Yasuhiro Matsumoto 2022-06-18 16:48:36 +01:00 committed by Bram Moolenaar
parent 620aa8eb5b
commit 09f68a5e78
4 changed files with 5 additions and 3 deletions

View File

@ -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);

View File

@ -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;

View File

@ -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 : */

View File

@ -734,6 +734,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
5125,
/**/
5124,
/**/