Declare as NORETURN
This commit is contained in:
parent
a3726c028d
commit
12cbfd8e2f
@ -157,7 +157,7 @@ VALUE io_spec_rb_io_wait_readable(VALUE self, VALUE io, VALUE read_p) {
|
|||||||
|
|
||||||
return ret ? Qtrue : Qfalse;
|
return ret ? Qtrue : Qfalse;
|
||||||
#else
|
#else
|
||||||
UNREACHABLE;
|
UNREACHABLE_RETURN(Qnil);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -174,6 +174,10 @@ VALUE io_spec_rb_io_maybe_wait_writable(VALUE self, VALUE error, VALUE io, VALUE
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef RUBY_VERSION_IS_3_1
|
#ifdef RUBY_VERSION_IS_3_1
|
||||||
|
#ifdef SET_NON_BLOCKING_FAILS_ALWAYS
|
||||||
|
NORETURN(VALUE io_spec_rb_io_maybe_wait_readable(VALUE self, VALUE error, VALUE io, VALUE timeout, VALUE read_p));
|
||||||
|
#endif
|
||||||
|
|
||||||
VALUE io_spec_rb_io_maybe_wait_readable(VALUE self, VALUE error, VALUE io, VALUE timeout, VALUE read_p) {
|
VALUE io_spec_rb_io_maybe_wait_readable(VALUE self, VALUE error, VALUE io, VALUE timeout, VALUE read_p) {
|
||||||
int fd = io_spec_get_fd(io);
|
int fd = io_spec_get_fd(io);
|
||||||
#ifndef SET_NON_BLOCKING_FAILS_ALWAYS
|
#ifndef SET_NON_BLOCKING_FAILS_ALWAYS
|
||||||
@ -209,7 +213,7 @@ VALUE io_spec_rb_io_maybe_wait_readable(VALUE self, VALUE error, VALUE io, VALUE
|
|||||||
|
|
||||||
return INT2NUM(ret);
|
return INT2NUM(ret);
|
||||||
#else
|
#else
|
||||||
UNREACHABLE;
|
UNREACHABLE_RETURN(Qnil);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user