From 09f68a5e7817cbb40854ee6b8ae3db21d5365346 Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Sat, 18 Jun 2022 16:48:36 +0100 Subject: 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. --- src/os_win32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/os_win32.c') diff --git a/src/os_win32.c b/src/os_win32.c index da48bfd61..1adaaedce 100644 --- 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; -- cgit v1.2.1