# HG changeset patch # User Bram Moolenaar # Date 1655568003 -7200 # Node ID 35a30cb18005d6bf7559a1497c650324ab788be9 # Parent b9756901f6101d741685ff66c426d7e9a0feea38 patch 8.2.5125: MS-Windows: warnings from MinGW compiler Commit: https://github.com/vim/vim/commit/09f68a5e7817cbb40854ee6b8ae3db21d5365346 Author: Yasuhiro Matsumoto Date: Sat Jun 18 16:48:36 2022 +0100 patch 8.2.5125: MS-Windows: warnings from MinGW compiler Problem: MS-Windows: warnings from MinGW compyler. Solution: Use "volatile". (Yasuhiro Matsumoto, closes https://github.com/vim/vim/issues/10589) Initialize variable. diff --git a/src/map.c b/src/map.c --- a/src/map.c +++ b/src/map.c @@ -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); diff --git a/src/os_win32.c b/src/os_win32.c --- a/src/os_win32.c +++ b/src/os_win32.c @@ -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; diff --git a/src/proto/os_win32.pro b/src/proto/os_win32.pro --- a/src/proto/os_win32.pro +++ b/src/proto/os_win32.pro @@ -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 : */ diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -735,6 +735,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 5125, +/**/ 5124, /**/ 5123,