Skip to content

Commit

Permalink
#736: lib: make num_current_allocated_ not static (warning)
Browse files Browse the repository at this point in the history
  • Loading branch information
lifflander committed Mar 26, 2020
1 parent 793bb8e commit 5ad3c82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mimalloc/src/alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ extern inline void* _mi_page_malloc(mi_heap_t* heap, mi_page_t* page, size_t siz
return block;
}

static ATOMIC_SIZE_T num_current_allocated_ = 0;
ATOMIC_SIZE_T num_current_allocated_ = 0;

// allocate a small block
extern inline mi_decl_restrict void* mi_heap_malloc_small(mi_heap_t* heap, size_t size) mi_attr_noexcept {
Expand Down

0 comments on commit 5ad3c82

Please sign in to comment.