From cc1aa4ca24812d4e22b1f19759ce85cc6c09d514 Mon Sep 17 00:00:00 2001 From: Katelyn Gadd Date: Tue, 26 Mar 2024 18:38:08 -0700 Subject: [PATCH] Fix build --- src/mono/mono/utils/dlmalloc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mono/mono/utils/dlmalloc.c b/src/mono/mono/utils/dlmalloc.c index 13643c7c142ea2..5ff079f4e4e5e6 100644 --- a/src/mono/mono/utils/dlmalloc.c +++ b/src/mono/mono/utils/dlmalloc.c @@ -26,9 +26,11 @@ #define USE_LOCKS 1 #ifdef HOST_WASM +#pragma clang diagnostic ignored "-Wunused-variable" /* Use sbrk to allocate memory, and never release pages since emscripten mmap is fake */ #define HAVE_MORECORE 1 #define NO_MALLINFO 1 +#undef HAVE_MMAP #define HAVE_MMAP 0 #else /* Use mmap for allocating memory */