1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

suppress warning: 'val' may be used uninitialized in this function

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2012-11-01 19:48:34 +00:00
parent 1d4ec583c7
commit 71dcc25fb7

View file

@ -1217,7 +1217,7 @@ rb_thread_call_without_gvl(void *(*func)(void *data), void *data1,
VALUE
rb_thread_io_blocking_region(rb_blocking_function_t *func, void *data1, int fd)
{
VALUE val;
VALUE val = Qundef; /* shouldn't be used */
rb_thread_t *th = GET_THREAD();
int saved_errno = 0;
int state;