diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2018-11-09 10:14:09 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2018-11-09 10:14:09 +0300 |
commit | ae06939a1f81cbac127f849697fca511cfe9024e (patch) | |
tree | c1401b2ce8b709f4e0c9db5dd3cebeddb88f1c99 /os_dep.c | |
parent | 4d9121976da7cf9c54f8cb4e9901ee5b0e5206f3 (diff) | |
download | bdwgc-ae06939a1f81cbac127f849697fca511cfe9024e.tar.gz |
Fix 'set_pht_entry_from_index_concurrent value is unknown' cppcheck warning
(fix of commit cdc201f40)
* blacklst.c [PARALLEL_MARK && THREAD_SANITIZER]
(backlist_set_pht_entry_from_index): Assume
set_pht_entry_from_index_concurrent is always defined.
* include/private/gc_priv.h [!THREADS || !AO_HAVE_or]
(set_pht_entry_from_index_concurrent): Define (to
set_pht_entry_from_index).
* include/private/gc_priv.h [THREADS && AO_HAVE_or]
(GC_acquire_dirty_lock, GC_release_dirty_lock): Define to empty.
* os_dep.c [!GC_DISABLE_INCREMENTAL && (!THREADS || AO_HAVE_or)]
(async_set_pht_entry_from_index): Define to
set_pht_entry_from_index_concurrent.
Diffstat (limited to 'os_dep.c')
-rw-r--r-- | os_dep.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -2959,10 +2959,7 @@ GC_API GC_push_other_roots_proc GC_CALL GC_get_push_other_roots(void) #endif /* DEFAULT_VDB */ #ifndef GC_DISABLE_INCREMENTAL -# ifndef THREADS -# define async_set_pht_entry_from_index(db, index) \ - set_pht_entry_from_index(db, index) -# elif defined(set_pht_entry_from_index_concurrent) +# if !defined(THREADS) || defined(AO_HAVE_or) # define async_set_pht_entry_from_index(db, index) \ set_pht_entry_from_index_concurrent(db, index) # elif defined(AO_HAVE_test_and_set_acquire) |