summaryrefslogtreecommitdiff
path: root/error.c
diff options
context:
space:
mode:
authorKazuhiro NISHIYAMA <zn@mbf.nifty.com>2021-07-20 14:46:46 +0900
committerKazuhiro NISHIYAMA <zn@mbf.nifty.com>2021-07-20 14:46:46 +0900
commit2e6704304166d05014e89c1009d9c78c9e8d269a (patch)
tree59390ddd6bea1c01e55c402323342dfbb7b9e118 /error.c
parent036f26a4e24d7e6e8de30aa7e3cedb19f7da88b0 (diff)
Use UNREACHABLE instead of fall through
Diffstat (limited to 'error.c')
-rw-r--r--error.c2
1 files changed, 1 insertions, 1 deletions
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;
}