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:
parent
1d4ec583c7
commit
71dcc25fb7
1 changed files with 1 additions and 1 deletions
2
thread.c
2
thread.c
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue