ruby-changes:52171
From: nobu <ko1@a...>
Date: Wed, 15 Aug 2018 21:53:51 +0900 (JST)
Subject: [ruby-changes:52171] nobu:r64379 (trunk): spec/ruby/optional/capi/ext/io_spec.c: guard unreachable code
nobu 2018-08-15 21:53:45 +0900 (Wed, 15 Aug 2018) New Revision: 64379 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64379 Log: spec/ruby/optional/capi/ext/io_spec.c: guard unreachable code Modified files: trunk/spec/ruby/optional/capi/ext/io_spec.c Index: spec/ruby/optional/capi/ext/io_spec.c =================================================================== --- spec/ruby/optional/capi/ext/io_spec.c (revision 64378) +++ spec/ruby/optional/capi/ext/io_spec.c (revision 64379) @@ -144,8 +144,10 @@ NORETURN(VALUE io_spec_rb_io_wait_readab https://github.com/ruby/ruby/blob/trunk/spec/ruby/optional/capi/ext/io_spec.c#L144 VALUE io_spec_rb_io_wait_readable(VALUE self, VALUE io, VALUE read_p) { int fd = io_spec_get_fd(io); +# if !SET_NON_BLOCKING_FAILS_ALWAYS char buf[RB_IO_WAIT_READABLE_BUF]; int ret, saved_errno; +# endif if (set_non_blocking(fd) == -1) rb_sys_fail("set_non_blocking failed"); @@ -173,6 +175,8 @@ VALUE io_spec_rb_io_wait_readable(VALUE https://github.com/ruby/ruby/blob/trunk/spec/ruby/optional/capi/ext/io_spec.c#L175 } return ret ? Qtrue : Qfalse; +# else + UNREACHABLE; # endif } #endif -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/