summaryrefslogtreecommitdiff
path: root/prism_compile.c
diff options
context:
space:
mode:
authorKevin Newton <[email protected]>2025-01-05 13:29:55 -0500
committerKevin Newton <[email protected]>2025-01-05 19:56:21 -0500
commit2a1cff40f5e7875f69a7d0ed59eab92cc86c65ff ()
treecd89b542019416cdd1175d83db1a6df1701b3077 /prism_compile.c
parentc037f5a28c54b86139ef17db061fdbf7dc82fd32 (diff)
Do not warn unused block when using forwarding
Fixes [Bug #21003]
Notes: Merged: https://.com/ruby/ruby/pull/12512
-rw-r--r--prism_compile.c2
1 files changed, 2 insertions, 0 deletions
@@ -1756,6 +1756,8 @@ pm_setup_args_core(const pm_arguments_node_t *arguments_node, const pm_node_t *b
break;
}
case PM_FORWARDING_ARGUMENTS_NODE: { // not counted in argc return value
if (ISEQ_BODY(ISEQ_BODY(iseq)->local_iseq)->param.flags.forwardable) {
*flags |= VM_CALL_FORWARDING;