To: vim_dev@googlegroups.com Subject: Patch 8.2.5125 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.5125 Problem: MS-Windows: warnings from MinGW compyler. Solution: Use "volatile". (Yasuhiro Matsumoto, closes #10589) Initialize variable. Files: src/os_win32.c, src/proto/os_win32.pro, src/map.c *** ../vim-8.2.5124/src/os_win32.c 2022-06-11 10:43:16.573008233 +0100 --- src/os_win32.c 2022-06-18 16:47:14.038509727 +0100 *************** *** 8378,8384 **** * 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 * start_timeout(long msec) { BOOL ret; --- 8378,8384 ---- * 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. */ ! volatile int * start_timeout(long msec) { BOOL ret; *** ../vim-8.2.5124/src/proto/os_win32.pro 2022-06-05 16:55:50.698774344 +0100 --- src/proto/os_win32.pro 2022-06-18 16:47:29.230519652 +0100 *************** *** 85,89 **** void resize_console_buf(void); char *GetWin32Error(void); void stop_timeout(void); ! const int *start_timeout(long msec); /* vim: set ft=c : */ --- 85,89 ---- void resize_console_buf(void); char *GetWin32Error(void); void stop_timeout(void); ! volatile int *start_timeout(long msec); /* vim: set ft=c : */ *** ../vim-8.2.5124/src/map.c 2022-06-16 11:42:05.596034918 +0100 --- src/map.c 2022-06-18 16:46:37.550485405 +0100 *************** *** 1273,1279 **** int i; int fuzzy; int match; ! int score; fuzmatch_str_T *fuzmatch; fuzzy = cmdline_fuzzy_complete(pat); --- 1273,1279 ---- int i; int fuzzy; int match; ! int score = 0; fuzmatch_str_T *fuzmatch; fuzzy = cmdline_fuzzy_complete(pat); *** ../vim-8.2.5124/src/version.c 2022-06-18 16:05:28.864632946 +0100 --- src/version.c 2022-06-18 16:45:40.822446082 +0100 *************** *** 736,737 **** --- 736,739 ---- { /* Add new patch number below this line */ + /**/ + 5125, /**/ -- Why I like vim: > I like VIM because, when I ask a question in this newsgroup, I get a > one-line answer. With xemacs, I get a 1Kb lisp script with bugs in it ;-) /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///