mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-05 23:19:31 +03:00
fix volatile declaration on function pointer
This commit is contained in:
parent
89858ab791
commit
f2f7c8d0e9
1 changed files with 1 additions and 1 deletions
|
@ -153,7 +153,7 @@ static void mi_out_stderr(const char* msg) {
|
||||||
// Should be atomic but gives errors on many platforms as generally we cannot cast a function pointer to a uintptr_t.
|
// Should be atomic but gives errors on many platforms as generally we cannot cast a function pointer to a uintptr_t.
|
||||||
// For now, don't register output from multiple threads.
|
// For now, don't register output from multiple threads.
|
||||||
#pragma warning(suppress:4180)
|
#pragma warning(suppress:4180)
|
||||||
static volatile mi_output_fun* mi_out_default; // = NULL
|
static mi_output_fun* volatile mi_out_default; // = NULL
|
||||||
|
|
||||||
static mi_output_fun* mi_out_get_default(void) {
|
static mi_output_fun* mi_out_get_default(void) {
|
||||||
mi_output_fun* out = mi_out_default;
|
mi_output_fun* out = mi_out_default;
|
||||||
|
|
Loading…
Add table
Reference in a new issue