fix build warning on 32-bit musl

This commit is contained in:
Daan 2024-05-16 19:05:24 -07:00
parent e3fea8f4e1
commit aa91fe0f1c

View File

@ -175,7 +175,9 @@ static void* mi_arena_meta_zalloc(size_t size, mi_memid_t* memid, mi_stats_t* st
// try static
void* p = NULL;
#if !(MI_INTPTR_SIZE==4 && MI_LIBC_MUSL) // fix 32-bit musl compilation, issue #895
#if (MI_INTPTR_SIZE==4 && MI_LIBC_MUSL) // fix 32-bit musl compilation, issue #895
MI_UNUSED(mi_arena_static_zalloc);
#else
p = mi_arena_static_zalloc(size, MI_MAX_ALIGN_SIZE, memid);
#endif
if (p != NULL) return p;