Skip to content

Commit

Permalink
Eliminate 'int-to-ptr cast' gcc warning in GC_push_all_stacks on Solaris
Browse files Browse the repository at this point in the history
* pthread_stop_world.c [STACKPTR_CORRECTOR_AVAILABLE]
(GC_push_all_stacks): Cast value of `pthread_t` type to `void*` thru
`word` type.
  • Loading branch information
ivmai committed Dec 27, 2024
1 parent ec9ed03 commit db6668d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pthread_stop_world.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit db6668d

Please sign in to comment.