Skip to content

Commit

Permalink
Suppress unused-variable warning
Browse files Browse the repository at this point in the history
`key` is not used outside this assertion.
  • Loading branch information
nobu committed Aug 10, 2020
1 parent c355fa7 commit 187c164
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions id_table.c
Expand Up @@ -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;
Expand Down

0 comments on commit 187c164

Please sign in to comment.