From 2e6704304166d05014e89c1009d9c78c9e8d269a Mon Sep 17 00:00:00 2001 From: Kazuhiro NISHIYAMA Date: Tue, 20 Jul 2021 14:46:46 +0900 Subject: [PATCH] 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 ed860bb3dc..1f3f4ed319 100644 --- a/error.c +++ b/error.c @@ -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; }