Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirk Klobe <kklobe@gmail.com>2022-06-28 01:37:12 +0300
committerKirk Klobe <kklobe@gmail.com>2022-06-28 01:37:12 +0300
commit49053775e3c3d8f72b3d1b094aa60858d6dc0ea4 (patch)
tree31177700ee62472622749c76a0d8766ee0643cbc
parent7f35a299c4a7abf117137b1ef03c883ab2302cf5 (diff)
Fix macOS GCC 11/12 compile error
-rw-r--r--libbacktrace/macho.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbacktrace/macho.cpp b/libbacktrace/macho.cpp
index cb50dc5f..d9b0742f 100644
--- a/libbacktrace/macho.cpp
+++ b/libbacktrace/macho.cpp
@@ -1292,7 +1292,7 @@ backtrace_initialize (struct backtrace_state *state, const char *filename,
else
{
if (found_sym)
- backtrace_atomic_store_pointer (&state->syminfo_fn, macho_syminfo);
+ backtrace_atomic_store_pointer (&state->syminfo_fn, &macho_syminfo);
else
(void) __sync_bool_compare_and_swap (&state->syminfo_fn, NULL,
macho_nosyms);
@@ -1338,7 +1338,7 @@ backtrace_initialize (struct backtrace_state *state, const char *filename,
else
{
if (found_sym)
- backtrace_atomic_store_pointer (&state->syminfo_fn, macho_syminfo);
+ backtrace_atomic_store_pointer (&state->syminfo_fn, &macho_syminfo);
else
(void) __sync_bool_compare_and_swap (&state->syminfo_fn, NULL,
macho_nosyms);