Merge pull request #415 from kklobe/kk/fix-gcc-mac-compile-error

Fix macOS GCC 11/12 compile error
This commit is contained in:
Bartosz Taudul 2022-06-28 01:21:00 +02:00 committed by GitHub
commit 1f43cfd2b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);