summaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
authorJean Boussier <[email protected]>2025-04-27 08:05:43 +0200
committerJean Boussier <[email protected]>2025-04-27 11:59:28 +0200
commit3ec7bfff2e7ac4f6f69d26676edcfd2e73ea3b05 ()
treee5f836790fc027fb7d30bb6388f10ae4464b6e40 /compile.c
parent6874b289a199db74fac4126cbefe7cfac491cda0 (diff)
Use a `set_table` for `rb_vm_struct.unused_block_warning_table`
Now that we have a hash-set implementation we can use that instead of a hash-table with a static value.
-rw-r--r--compile.c2
1 files changed, 1 insertions, 1 deletions
@@ -2014,7 +2014,7 @@ iseq_set_use_block(rb_iseq_t *iseq)
if (!rb_warning_category_enabled_p(RB_WARN_CATEGORY_STRICT_UNUSED_BLOCK)) {
st_data_t key = (st_data_t)rb_intern_str(body->location.label); // String -> ID
- st_insert(vm->unused_block_warning_table, key, 1);
}
}
}