summaryrefslogtreecommitdiff
path: root/src/alloc-override-osx.c
diff options
context:
space:
mode:
authorDaan <daanl@outlook.com>2022-01-16 12:07:07 -0800
committerDaan <daanl@outlook.com>2022-01-16 12:07:07 -0800
commit7cde509b68ea510b322ec29d45726cb1a2bbf567 (patch)
treee10f724361740f54c8439c40a49870e83091b2fc /src/alloc-override-osx.c
parentddae097dc6c96faa520dc0d7bf43af5fcc69cb89 (diff)
fix warning on clang on macos
Diffstat (limited to 'src/alloc-override-osx.c')
-rw-r--r--src/alloc-override-osx.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/alloc-override-osx.c b/src/alloc-override-osx.c
index edd93b3..34cde0b 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,