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. --- thread_local_alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'thread_local_alloc.c') diff --git a/thread_local_alloc.c b/thread_local_alloc.c index f127b105..3e7681f1 100644 --- a/thread_local_alloc.c +++ b/thread_local_alloc.c @@ -98,7 +98,7 @@ GC_INNER void GC_init_thread_local(GC_tlfs p) if (!EXPECT(keys_initialized, TRUE)) { # ifdef USE_CUSTOM_SPECIFIC /* Ensure proper alignment of a "pushed" GC symbol. */ - GC_ASSERT((word)&GC_thread_key % sizeof(word) == 0); + GC_ASSERT((word)(&GC_thread_key) % sizeof(word) == 0); # endif res = GC_key_create(&GC_thread_key, reset_thread_key); if (COVERT_DATAFLOW(res) != 0) { -- cgit v1.2.1