summaryrefslogtreecommitdiff
path: root/pthread_support.c
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2022-10-19 09:05:14 +0300
committerIvan Maidanski <ivmai@mail.ru>2022-10-19 14:05:51 +0300
commit13d8dfbd3f6e24982758a39ca4ca6c60cf451768 (patch)
tree5bba9d40ea6bb9e7d5625dad7e168fa8c67d7c43 /pthread_support.c
parent75f52d10108e3bbe80144377236ac4c3f5086c36 (diff)
downloadbdwgc-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 'pthread_support.c')
-rw-r--r--pthread_support.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pthread_support.c b/pthread_support.c
index 22065853..7c501e4d 100644
--- a/pthread_support.c
+++ b/pthread_support.c
@@ -1377,7 +1377,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