From c0b06949cbf5a6c19fdd79cade0936e51b501bf2 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Fri, 20 Mar 2020 17:38:14 +0000 Subject: [PATCH] 32 bits build fix proposal. --- src/os.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/os.c b/src/os.c index 89fd349b..3a1c4c6a 100644 --- a/src/os.c +++ b/src/os.c @@ -905,6 +905,7 @@ static void* mi_os_alloc_huge_os_pagesx(void* addr, size_t size, int numa_node) } #else static void* mi_os_alloc_huge_os_pagesx(void* addr, size_t size, int numa_node) { + UNUSED(addr); UNUSED(size); UNUSED(numa_node); return NULL; } #endif @@ -940,6 +941,7 @@ static uint8_t* mi_os_claim_huge_pages(size_t pages, size_t* total_size) { } #else static uint8_t* mi_os_claim_huge_pages(size_t pages, size_t* total_size) { + UNUSED(pages); if (total_size != NULL) *total_size = 0; return NULL; }