Skip to content

Commit

Permalink
Use UNREACHABLE_CODE
Browse files Browse the repository at this point in the history
Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
  • Loading branch information
headius and nobu committed Oct 21, 2023
1 parent 85d5bdc commit afb3013
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion io.c
Original file line number Diff line number Diff line change
Expand Up @@ -2878,7 +2878,7 @@ rb_io_descriptor(VALUE io)

rb_raise(rb_eTypeError, "expected IO or #fileno, %"PRIsVALUE" given", rb_obj_class(io));

return -1;
UNREACHABLE_RETURN(-1);
}

int
Expand Down

0 comments on commit afb3013

Please sign in to comment.