mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 04:23:51 +00:00
Fix macOS GCC 11/12 compile error
This commit is contained in:
parent
7f35a299c4
commit
49053775e3
@ -1292,7 +1292,7 @@ backtrace_initialize (struct backtrace_state *state, const char *filename,
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (found_sym)
|
if (found_sym)
|
||||||
backtrace_atomic_store_pointer (&state->syminfo_fn, macho_syminfo);
|
backtrace_atomic_store_pointer (&state->syminfo_fn, &macho_syminfo);
|
||||||
else
|
else
|
||||||
(void) __sync_bool_compare_and_swap (&state->syminfo_fn, NULL,
|
(void) __sync_bool_compare_and_swap (&state->syminfo_fn, NULL,
|
||||||
macho_nosyms);
|
macho_nosyms);
|
||||||
@ -1338,7 +1338,7 @@ backtrace_initialize (struct backtrace_state *state, const char *filename,
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (found_sym)
|
if (found_sym)
|
||||||
backtrace_atomic_store_pointer (&state->syminfo_fn, macho_syminfo);
|
backtrace_atomic_store_pointer (&state->syminfo_fn, &macho_syminfo);
|
||||||
else
|
else
|
||||||
(void) __sync_bool_compare_and_swap (&state->syminfo_fn, NULL,
|
(void) __sync_bool_compare_and_swap (&state->syminfo_fn, NULL,
|
||||||
macho_nosyms);
|
macho_nosyms);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user