From 13d8dfbd3f6e24982758a39ca4ca6c60cf451768 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Wed, 19 Oct 2022 09:05:14 +0300 Subject: 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. --- pthread_support.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pthread_support.c') 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 -- cgit v1.2.1