Use UNREACHABLE instead of fall through
This commit is contained in:
parent
036f26a4e2
commit
2e67043041
2
error.c
2
error.c
@ -1272,7 +1272,7 @@ exc_full_message(int argc, VALUE *argv, VALUE exc)
|
|||||||
switch (args[kw_highlight]) {
|
switch (args[kw_highlight]) {
|
||||||
default:
|
default:
|
||||||
rb_bool_expected(args[kw_highlight], "highlight");
|
rb_bool_expected(args[kw_highlight], "highlight");
|
||||||
/* fall through */
|
UNREACHABLE;
|
||||||
case Qundef: args[kw_highlight] = Qnil; break;
|
case Qundef: args[kw_highlight] = Qnil; break;
|
||||||
case Qtrue: case Qfalse: case Qnil: break;
|
case Qtrue: case Qfalse: case Qnil: break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user