Skip to content

Commit 1f43cfd

Browse files
authored
Merge pull request #415 from kklobe/kk/fix-gcc-mac-compile-error
Fix macOS GCC 11/12 compile error
2 parents 7f35a29 + 4905377 commit 1f43cfd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libbacktrace/macho.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1292,7 +1292,7 @@ backtrace_initialize (struct backtrace_state *state, const char *filename,
12921292
else
12931293
{
12941294
if (found_sym)
1295-
backtrace_atomic_store_pointer (&state->syminfo_fn, macho_syminfo);
1295+
backtrace_atomic_store_pointer (&state->syminfo_fn, &macho_syminfo);
12961296
else
12971297
(void) __sync_bool_compare_and_swap (&state->syminfo_fn, NULL,
12981298
macho_nosyms);
@@ -1338,7 +1338,7 @@ backtrace_initialize (struct backtrace_state *state, const char *filename,
13381338
else
13391339
{
13401340
if (found_sym)
1341-
backtrace_atomic_store_pointer (&state->syminfo_fn, macho_syminfo);
1341+
backtrace_atomic_store_pointer (&state->syminfo_fn, &macho_syminfo);
13421342
else
13431343
(void) __sync_bool_compare_and_swap (&state->syminfo_fn, NULL,
13441344
macho_nosyms);

0 commit comments

Comments
 (0)