From 7cde509b68ea510b322ec29d45726cb1a2bbf567 Mon Sep 17 00:00:00 2001 From: Daan Date: Sun, 16 Jan 2022 12:07:07 -0800 Subject: [PATCH] fix warning on clang on macos --- src/alloc-override-osx.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/alloc-override-osx.c b/src/alloc-override-osx.c index edd93b37..34cde0b4 100644 --- a/src/alloc-override-osx.c +++ b/src/alloc-override-osx.c @@ -183,6 +183,10 @@ static boolean_t intro_zone_locked(malloc_zone_t* zone) { #pragma GCC diagnostic ignored "-Wmissing-field-initializers" #endif +#if defined(__clang__) +#pragma clang diagnostic ignored "-Wc99-extensions" +#endif + static malloc_introspection_t mi_introspect = { .enumerator = &intro_enumerator, .good_size = &intro_good_size,