1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Use UNREACHABLE instead of fall through

This commit is contained in:
Kazuhiro NISHIYAMA 2021-07-20 14:46:46 +09:00
parent 036f26a4e2
commit 2e67043041
No known key found for this signature in database
GPG key ID: 262ED8DBB4222F7A

View file

@ -1272,7 +1272,7 @@ exc_full_message(int argc, VALUE *argv, VALUE exc)
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;
}