Suppress a warning
Loop variables of `list_for_each` need to be initialized.
This commit is contained in:
parent
68a8f611e0
commit
9513fcd5bc
2
gc.c
2
gc.c
@ -3344,7 +3344,7 @@ objspace_each_objects(rb_objspace_t *objspace, each_obj_callback *callback, void
|
||||
* call the callback over each page that exists in this buffer. Thus it
|
||||
* is safe for the callback to allocate objects without possibly entering
|
||||
* an infinte loop. */
|
||||
struct heap_page *page;
|
||||
struct heap_page *page = 0;
|
||||
size_t pages_count = 0;
|
||||
list_for_each(&heap_eden->pages, page, page_node) {
|
||||
pages[pages_count] = page;
|
||||
|
Loading…
x
Reference in New Issue
Block a user