ruby-changes:66845
From: Kazuhiro <ko1@a...>
Date: Tue, 20 Jul 2021 14:47:50 +0900 (JST)
Subject: [ruby-changes:66845] 2e67043041 (master): Use UNREACHABLE instead of fall through
https://git.ruby-lang.org/ruby.git/commit/?id=2e67043041 From 2e6704304166d05014e89c1009d9c78c9e8d269a Mon Sep 17 00:00:00 2001 From: Kazuhiro NISHIYAMA <zn@m...> Date: Tue, 20 Jul 2021 14:46:46 +0900 Subject: Use UNREACHABLE instead of fall through --- error.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/error.c b/error.c index ed860bb..1f3f4ed 100644 --- a/error.c +++ b/error.c @@ -1272,7 +1272,7 @@ exc_full_message(int argc, VALUE *argv, VALUE exc) https://github.com/ruby/ruby/blob/trunk/error.c#L1272 switch (args[kw_highlight]) { default: rb_bool_expected(args[kw_highlight], "highlight"); - /* fall through */ + UNREACHABLE; case Qundef: args[kw_highlight] = Qnil; break; case Qtrue: case Qfalse: case Qnil: break; } -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/