diff options
author | Ian Lance Taylor <iant@golang.org> | 2019-09-26 22:19:47 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2019-09-26 22:19:47 +0000 |
commit | 5fe5f75fcf38873fb763a1ed8b63e7a4e505820a (patch) | |
tree | 3b5fd43eecdfcd073c658c77324e393bd2388f77 /libbacktrace/pecoff.c | |
parent | 0900e29cdbc533fecf2a311447bbde17f101bbd6 (diff) | |
download | gcc-5fe5f75fcf38873fb763a1ed8b63e7a4e505820a.zip gcc-5fe5f75fcf38873fb763a1ed8b63e7a4e505820a.tar.gz gcc-5fe5f75fcf38873fb763a1ed8b63e7a4e505820a.tar.bz2 |
re PR libbacktrace/91908 (New libbacktrace tests fail to build)
PR libbacktrace/91908
* pecoff.c (backtrace_initialize): Explicitly cast unchecked
__sync_bool_compare_and_swap to void.
* xcoff.c (backtrace_initialize): Likewise.
From-SVN: r276168
Diffstat (limited to 'libbacktrace/pecoff.c')
-rw-r--r-- | libbacktrace/pecoff.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libbacktrace/pecoff.c b/libbacktrace/pecoff.c index da1982f..fcf9508 100644 --- a/libbacktrace/pecoff.c +++ b/libbacktrace/pecoff.c @@ -922,7 +922,8 @@ backtrace_initialize (struct backtrace_state *state, if (found_sym) backtrace_atomic_store_pointer (&state->syminfo_fn, coff_syminfo); else - __sync_bool_compare_and_swap (&state->syminfo_fn, NULL, coff_nosyms); + (void) __sync_bool_compare_and_swap (&state->syminfo_fn, NULL, + coff_nosyms); } if (!state->threaded) |