diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2022-10-19 09:05:14 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2022-10-19 14:05:51 +0300 |
commit | 13d8dfbd3f6e24982758a39ca4ca6c60cf451768 (patch) | |
tree | 5bba9d40ea6bb9e7d5625dad7e168fa8c67d7c43 /win32_threads.c | |
parent | 75f52d10108e3bbe80144377236ac4c3f5086c36 (diff) | |
download | bdwgc-13d8dfbd3f6e24982758a39ca4ca6c60cf451768.tar.gz |
Eliminate 'boolean result used in bitwise op' cppcheck FP in GC_thr_init
(fix of commit d692eb432)
* pthread_support.c (GC_thr_init): Put &GC_threads into parentheses in
assertion.
* win32_threads.c (GC_thr_init): Likewise.
* thread_local_alloc.c [USE_CUSTOM_SPECIFIC] (GC_init_thread_local):
Put &GC_thread_key into parentheses in assertion.
Diffstat (limited to 'win32_threads.c')
-rw-r--r-- | win32_threads.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win32_threads.c b/win32_threads.c index 0611d603..94186c4f 100644 --- a/win32_threads.c +++ b/win32_threads.c @@ -2621,7 +2621,7 @@ GC_INNER void GC_thr_init(void) GC_ASSERT(I_HOLD_LOCK()); GC_ASSERT(!GC_thr_initialized); - GC_ASSERT((word)&GC_threads % sizeof(word) == 0); + GC_ASSERT((word)(&GC_threads) % sizeof(word) == 0); # ifdef GC_ASSERTIONS GC_thr_initialized = TRUE; # endif |