mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-06 11:34:38 +03:00
fix C++ compilation warnings with VisualStudio 2017
This commit is contained in:
parent
c3528203b5
commit
7e743dfb58
5 changed files with 15 additions and 10 deletions
|
@ -106,8 +106,8 @@ void* mi_zalloc(size_t size) mi_attr_noexcept {
|
|||
// multi-threaded free
|
||||
static mi_decl_noinline void _mi_free_block_mt(mi_page_t* page, mi_block_t* block)
|
||||
{
|
||||
mi_thread_free_t tfree;
|
||||
mi_thread_free_t tfreex;
|
||||
mi_thread_free_t tfree = {0};
|
||||
mi_thread_free_t tfreex = {0};
|
||||
bool use_delayed;
|
||||
|
||||
do {
|
||||
|
|
|
@ -137,8 +137,8 @@ void _mi_page_use_delayed_free(mi_page_t* page, bool enable) {
|
|||
static void mi_page_thread_free_collect(mi_page_t* page)
|
||||
{
|
||||
mi_block_t* head;
|
||||
mi_thread_free_t tfree;
|
||||
mi_thread_free_t tfreex;
|
||||
mi_thread_free_t tfree = {0};
|
||||
mi_thread_free_t tfreex = {0};
|
||||
do {
|
||||
tfreex.value = tfree.value = page->thread_free.value;
|
||||
head = (mi_block_t*)((uintptr_t)tfree.head << MI_TF_PTR_SHIFT);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue