diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2022-12-09 22:14:27 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2023-03-14 11:29:23 +0300 |
commit | 057c9072adb4aa6212a01260b4f601e99f40dff4 (patch) | |
tree | d36b765d9234f7a6a8ea09386403d8b12becfa27 | |
parent | ed4a18a706101727896fd4e2d071b2c19b85c07e (diff) | |
download | bdwgc-057c9072adb4aa6212a01260b4f601e99f40dff4.tar.gz |
Eliminate 'cast signed to bigger unsigned' CSA warning in GC_new_thread
(a cherry-pick of commit 99a571390 from 'master')
* pthread_support.c [CPPCHECK && THREAD_SANITIZER] (GC_new_thread):
Cast result->dummy[0] to unsigned char.
-rw-r--r-- | pthread_support.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pthread_support.c b/pthread_support.c index 36bbda5f..88c458b5 100644 --- a/pthread_support.c +++ b/pthread_support.c @@ -546,7 +546,7 @@ STATIC GC_thread GC_new_thread(pthread_t id) first_thread_used = TRUE; GC_ASSERT(NULL == GC_threads[hv]); # if defined(THREAD_SANITIZER) && defined(CPPCHECK) - GC_noop1(result->dummy[0]); + GC_noop1((unsigned char)result->dummy[0]); # endif } else { result = (struct GC_Thread_Rep *) |