From 187c164d714973fcbb87f33139cd863fd8068096 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Mon, 10 Aug 2020 17:46:32 +0900 Subject: Suppress unused-variable warning `key` is not used outside this assertion. --- id_table.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'id_table.c') diff --git a/id_table.c b/id_table.c index ade49cd8da..840ab46ee3 100644 --- a/id_table.c +++ b/id_table.c @@ -274,9 +274,8 @@ rb_id_table_foreach_with_replace(struct rb_id_table *tbl, rb_id_table_foreach_fu for (i=0; iitems[i].val, data); - assert(key != 0); + assert(ITEM_GET_KEY(tbl, i)); if (ret == ID_TABLE_REPLACE) { VALUE val = tbl->items[i].val; -- cgit v1.2.3