summaryrefslogtreecommitdiff
path: root/error.c
diff options
context:
space:
mode:
authorKazuhiro NISHIYAMA <zn@mbf.nifty.com>2021-07-19 17:21:45 +0900
committerKazuhiro NISHIYAMA <zn@mbf.nifty.com>2021-07-19 17:21:45 +0900
commit036f26a4e24d7e6e8de30aa7e3cedb19f7da88b0 (patch)
treea2a1f89cc2394c382c738f687235b1877c80cae1 /error.c
parentfa239e04792e4b83c551257bd24bcc3cad822bf8 (diff)
Add `fall through`
Pointed out by Coverity Scan ``` ** CID 1487522: Control flow issues (MISSING_BREAK) /error.c: 1273 in exc_full_message() ```
Diffstat (limited to 'error.c')
-rw-r--r--error.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/error.c b/error.c
index c01e887dd2..ed860bb3dc 100644
--- a/error.c
+++ b/error.c
@@ -1272,6 +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 */
case Qundef: args[kw_highlight] = Qnil; break;
case Qtrue: case Qfalse: case Qnil: break;
}