This compiles on macos for x86_64, at least.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4485 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2023-10-04 23:20:57 +00:00
parent 6302565942
commit 31af27529e
5 changed files with 69 additions and 17 deletions

View File

@ -207,7 +207,7 @@ tf_mem_allocation_t* tf_mem_summarize_allocations(int* out_count)
return result;
}
#if defined(__GNUC__)
#if defined(__GNUC__) && !defined(__APPLE__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wanalyzer-malloc-leak"
#endif
@ -306,7 +306,7 @@ static void* _tf_realloc(int64_t* total, void* ptr, size_t size)
return NULL;
}
}
#if defined(__GNUC__)
#if defined(__GNUC__) && !defined(__APPLE__)
#pragma GCC diagnostic pop
#endif
@ -334,7 +334,7 @@ static void* _tf_uv_realloc(void* ptr, size_t size)
return _tf_realloc(&s_uv_malloc_size, ptr, size);
}
#if defined(__GNUC__)
#if defined(__GNUC__) && !defined(__APPLE__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wanalyzer-malloc-leak"
#endif
@ -372,7 +372,7 @@ static void* _tf_uv_calloc(size_t nmemb, size_t size)
return NULL;
}
}
#if defined(__GNUC__)
#if defined(__GNUC__) && !defined(__APPLE__)
#pragma GCC diagnostic pop
#endif