ruby-changes:61879
From: Takashi <ko1@a...>
Date: Sun, 21 Jun 2020 16:35:52 +0900 (JST)
Subject: [ruby-changes:61879] 426db4cd90 (master): Fix -Wmaybe-uninitialized at vm_invoke_block
https://git.ruby-lang.org/ruby.git/commit/?id=426db4cd90 From 426db4cd90c9539118c62ade917d936ce2e99be0 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun <takashikkbn@g...> Date: Sun, 21 Jun 2020 00:34:31 -0700 Subject: Fix -Wmaybe-uninitialized at vm_invoke_block diff --git a/vm_insnhelper.c b/vm_insnhelper.c index 8f1b6e7..9957c55 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -3584,6 +3584,7 @@ vm_invoke_block(rb_execution_context_t *ec, rb_control_frame_t *reg_cfp, https://github.com/ruby/ruby/blob/trunk/vm_insnhelper.c#L3584 case block_handler_type_ifunc: func = vm_invoke_ifunc_block; break; case block_handler_type_proc: func = vm_invoke_proc_block; break; case block_handler_type_symbol: func = vm_invoke_symbol_block; break; + default: rb_bug("vm_invoke_block: unreachable"); } return func(ec, reg_cfp, calling, ci, is_lambda, block_handler); -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/