Skip to content

Commit

Permalink
Remove no longer needed no-volatile cast in GC_get_next_stack
Browse files Browse the repository at this point in the history
(fix of commit bc1866b)

* win32_threads.c (GC_get_next_stack): Remove redundant no-volatile
cast when getting address of crtn->last_stack_min.
  • Loading branch information
ivmai committed Jun 12, 2024
1 parent 6040089 commit 85d103c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions win32_threads.c
Original file line number Diff line number Diff line change
Expand Up @@ -1048,8 +1048,7 @@ GC_INNER void GC_get_next_stack(ptr_t start, ptr_t limit,

if (ADDR_LT(start, stack_end) && ADDR_LT(stack_end, current_min)) {
/* Update address of last_stack_min. */
plast_stack_min = (ptr_t * /* no volatile */)(word)(
&(dll_thread_table[i].crtn -> last_stack_min));
plast_stack_min = &(dll_thread_table[i].crtn -> last_stack_min);
current_min = stack_end;
# ifdef CPPCHECK
/* To avoid a warning that thread is always null. */
Expand Down

0 comments on commit 85d103c

Please sign in to comment.