-
Notifications
You must be signed in to change notification settings - Fork 407
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Eliminate 'compound assignment with volatile left operand' g++ warning
* include/private/gc_priv.h [MPROTECT_VDB] (set_pht_entry_from_index_concurrent_volatile): New macro. * os_dep.c [OPENBSD] (GC_skip_hole_openbsd): Replace result+=v to result=result+v; update comment. * os_dep.c [NEED_FIND_LIMIT || USE_PROC_FOR_LIBRARIES && THREADS] (GC_find_limit_with_bound): Likewise. * os_dep.c [NEED_FIND_LIMIT || USE_PROC_FOR_LIBRARIES && THREADS] (GC_find_limit_with_bound): Replace result-=v to result=result-v. * os_dep.c [(!THREADS || HAVE_LOCKFREE_AO_OR) && MPROTECT_VDB] (async_set_pht_entry_from_index): Redirect to set_pht_entry_from_index_concurrent_volatile(). * tests/gctest.c (uncollectable_count, collectable_count, atomic_count, realloc_count, extra_count): Remove volatile qualifier. * tests/gctest.c [!DBG_HDRS_ALL] (fail_count): Likewise. * tests/weakmap.c (stat_added, stat_found, stat_removed, stat_skip_locked, stat_skip_marked): Likewise. * tests/gctest.c (run_one_test): Remove unneeded no-volatile cast for atomic_count. * tests/gctest.c [GC_PTHREADS] (main): Likewise.
- Loading branch information
Showing
4 changed files
with
41 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters