diff options
author | Nobuyoshi Nakada <[email protected]> | 2021-05-04 10:08:23 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2021-05-04 10:08:23 +0900 |
commit | ef406a6c215d70139364c62a2b4c94dc65e101a4 () | |
tree | 20ae12b08ae5a34247108f07cd6e750f9d85f8cb /thread_win32.c | |
parent | 7a3dd05e21078ccc62c70a5047fcf6c128754fc7 (diff) |
Suppress maybe-uninitialized warning by mingw gcc 11
-rw-r--r-- | thread_win32.c | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -546,6 +546,17 @@ ruby_init_stack(volatile VALUE *addr) #define CHECK_ERR(expr) \ {if (!(expr)) {rb_bug("err: %lu - %s", GetLastError(), #expr);}} static void native_thread_init_stack(rb_thread_t *th) { @@ -553,7 +564,7 @@ native_thread_init_stack(rb_thread_t *th) char *base, *end; DWORD size, space; - CHECK_ERR(VirtualQuery(&mi, &mi, sizeof(mi))); base = mi.AllocationBase; end = mi.BaseAddress; end += mi.RegionSize; |