From b1ca713940d93387950ebfd3a4d1c6d457795da3 Mon Sep 17 00:00:00 2001 From: Mike Sinkovsky Date: Wed, 22 Jan 2020 15:58:21 +0500 Subject: [PATCH] Fix mimalloc/os.c compilation for mingw_x86 target (#3772) --- runtime/src/mimalloc/c/os.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/runtime/src/mimalloc/c/os.c b/runtime/src/mimalloc/c/os.c index 8f5afc5b469..3de6e361544 100644 --- a/runtime/src/mimalloc/c/os.c +++ b/runtime/src/mimalloc/c/os.c @@ -233,6 +233,8 @@ static void* mi_win_virtual_allocx(void* addr, size_t size, size_t try_alignment _mi_warning_message("unable to allocate huge (1GiB) page, trying large (2MiB) pages instead (error 0x%lx)\n", err); } } +#else + UNUSED(try_alignment); #endif #if (MI_INTPTR_SIZE >= 8) // on 64-bit systems, try to use the virtual address area after 4TiB for 4MiB aligned allocations