From db6668de9406f9d9642d1ad520a153c03b65c512 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Fri, 27 Dec 2024 21:34:00 +0300 Subject: [PATCH] Eliminate 'int-to-ptr cast' gcc warning in GC_push_all_stacks on Solaris * pthread_stop_world.c [STACKPTR_CORRECTOR_AVAILABLE] (GC_push_all_stacks): Cast value of `pthread_t` type to `void*` thru `word` type. --- pthread_stop_world.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pthread_stop_world.c b/pthread_stop_world.c index 81e960417..1093de4f6 100644 --- a/pthread_stop_world.c +++ b/pthread_stop_world.c @@ -872,7 +872,7 @@ GC_INNER void GC_push_all_stacks(void) } # ifdef STACKPTR_CORRECTOR_AVAILABLE if (GC_sp_corrector != 0) - GC_sp_corrector((void **)&lo, (void *)(p -> id)); + GC_sp_corrector((void **)&lo, (void *)(word)(p -> id)); # endif GC_push_all_stack_sections(lo, hi, traced_stack_sect); # ifdef STACK_GROWS_UP