mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Suppress unused-variable warning
`key` is not used outside this assertion.
This commit is contained in:
parent
c355fa72d4
commit
187c164d71
1 changed files with 1 additions and 2 deletions
|
@ -274,9 +274,8 @@ rb_id_table_foreach_with_replace(struct rb_id_table *tbl, rb_id_table_foreach_fu
|
|||
|
||||
for (i=0; i<capa; i++) {
|
||||
if (ITEM_KEY_ISSET(tbl, i)) {
|
||||
const id_key_t key = ITEM_GET_KEY(tbl, i);
|
||||
enum rb_id_table_iterator_result ret = (*func)(Qundef, tbl->items[i].val, data);
|
||||
assert(key != 0);
|
||||
assert(ITEM_GET_KEY(tbl, i));
|
||||
|
||||
if (ret == ID_TABLE_REPLACE) {
|
||||
VALUE val = tbl->items[i].val;
|
||||
|
|
Loading…
Add table
Reference in a new issue