Skip to content

Commit

Permalink
Fix compiler warning when USE_RVARGC=0
Browse files Browse the repository at this point in the history
  • Loading branch information
eightbitraptor authored and peterzhu2118 committed May 13, 2022
1 parent 51fab06 commit 708e839
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -5602,7 +5602,7 @@ gc_sweep_start(rb_objspace_t *objspace)
rb_size_pool_t *size_pool = &size_pools[i];
rb_heap_t *heap = SIZE_POOL_EDEN_HEAP(size_pool);

gc_sweep_start_heap(objspace, SIZE_POOL_EDEN_HEAP(size_pool));
gc_sweep_start_heap(objspace, heap);

#if USE_RVARGC
/* We should call gc_sweep_finish_size_pool for size pools with no pages. */
Expand Down

0 comments on commit 708e839

Please sign in to comment.