Mercurial > vim
changeset 29212:35a30cb18005 v8.2.5125
patch 8.2.5125: MS-Windows: warnings from MinGW compiler
Commit: https://github.com/vim/vim/commit/09f68a5e7817cbb40854ee6b8ae3db21d5365346
Author: Yasuhiro Matsumoto <mattn.jp@gmail.com>
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 18 Jun 2022 18:00:03 +0200 |
parents | b9756901f610 |
children | 6400a0abf095 |
files | src/map.c src/os_win32.c src/proto/os_win32.pro src/version.c |
diffstat | 4 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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);
--- 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;