From f8e0804dd227bc92bce91df37665893aa1acd0e3 Mon Sep 17 00:00:00 2001 From: Abdelrahman Date: Sun, 9 Feb 2025 16:34:36 +0000 Subject: [PATCH] Fix unused variable error --- src/os/mem/posix/mem_utils_posix.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/os/mem/posix/mem_utils_posix.c b/src/os/mem/posix/mem_utils_posix.c index e1d0706..f0e57db 100644 --- a/src/os/mem/posix/mem_utils_posix.c +++ b/src/os/mem/posix/mem_utils_posix.c @@ -17,6 +17,7 @@ internal const i32 access_types[] = { }; void *mem_util_allocate(void *addr, u64 size, MemAccess access, MemAllocFlags flags, MemInitType type) { + (void)type; i32 alloc_flags = flags | MAP_ANON | MAP_PRIVATE; #if defined(WAPP_PLATFORM_LINUX) || defined(WAPP_PLATFORM_GNU) || defined(WAPP_PLATFORM_NET_BSD)