mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-01-14 00:27:59 +08:00
improve warnings
This commit is contained in:
parent
bb957fcd81
commit
c8b5b74500
@ -172,6 +172,9 @@ if(CMAKE_C_COMPILER_ID MATCHES "AppleClang|Clang|GNU")
|
|||||||
if(CMAKE_C_COMPILER_ID MATCHES "GNU")
|
if(CMAKE_C_COMPILER_ID MATCHES "GNU")
|
||||||
list(APPEND mi_cflags -Wno-invalid-memory-model)
|
list(APPEND mi_cflags -Wno-invalid-memory-model)
|
||||||
endif()
|
endif()
|
||||||
|
if(CMAKE_C_COMPILER_ID MATCHES "AppleClang|Clang")
|
||||||
|
list(APPEND mi_cflags -Wpedantic -Wno-static-in-inline)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(CMAKE_C_COMPILER_ID MATCHES "Intel")
|
if(CMAKE_C_COMPILER_ID MATCHES "Intel")
|
||||||
|
@ -137,7 +137,7 @@ terms of the MIT license. A copy of the license can be found in the file
|
|||||||
void _ZdlPvmSt11align_val_t(void* p, size_t n, size_t al) { mi_free_size_aligned(p,n,al); }
|
void _ZdlPvmSt11align_val_t(void* p, size_t n, size_t al) { mi_free_size_aligned(p,n,al); }
|
||||||
void _ZdaPvmSt11align_val_t(void* p, size_t n, size_t al) { mi_free_size_aligned(p,n,al); }
|
void _ZdaPvmSt11align_val_t(void* p, size_t n, size_t al) { mi_free_size_aligned(p,n,al); }
|
||||||
|
|
||||||
typedef struct mi_nothrow_s { } mi_nothrow_t;
|
typedef struct mi_nothrow_s { int _tag; } mi_nothrow_t;
|
||||||
#if (MI_INTPTR_SIZE==8)
|
#if (MI_INTPTR_SIZE==8)
|
||||||
void* _Znwm(size_t n) MI_FORWARD1(mi_new,n); // new 64-bit
|
void* _Znwm(size_t n) MI_FORWARD1(mi_new,n); // new 64-bit
|
||||||
void* _Znam(size_t n) MI_FORWARD1(mi_new,n); // new[] 64-bit
|
void* _Znam(size_t n) MI_FORWARD1(mi_new,n); // new[] 64-bit
|
||||||
|
@ -557,6 +557,7 @@ void* _mi_externs[] = {
|
|||||||
(void*)&_mi_page_malloc,
|
(void*)&_mi_page_malloc,
|
||||||
(void*)&mi_malloc,
|
(void*)&mi_malloc,
|
||||||
(void*)&mi_malloc_small,
|
(void*)&mi_malloc_small,
|
||||||
|
(void*)&mi_zalloc_small,
|
||||||
(void*)&mi_heap_malloc,
|
(void*)&mi_heap_malloc,
|
||||||
(void*)&mi_heap_zalloc,
|
(void*)&mi_heap_zalloc,
|
||||||
(void*)&mi_heap_malloc_small
|
(void*)&mi_heap_malloc_small
|
||||||
|
Loading…
x
Reference in New Issue
Block a user