mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* thread.c (do_select): suppress warning (uninitialized value warning)
with UNINITIALIZED_VAR(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37959 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
98ed344ae9
commit
e2779a53ef
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Thu Nov 29 09:52:08 2012 NARUSE, Yui <naruse@ruby-lang.org>
|
||||||
|
|
||||||
|
* thread.c (do_select): suppress warning (uninitialized value warning)
|
||||||
|
with UNINITIALIZED_VAR().
|
||||||
|
|
||||||
Thu Nov 29 09:36:09 2012 Koichi Sasada <ko1@atdot.net>
|
Thu Nov 29 09:36:09 2012 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
* eval.c (ruby_cleanup): delay THREAD_KILLED timing.
|
* eval.c (ruby_cleanup): delay THREAD_KILLED timing.
|
||||||
|
|
3
thread.c
3
thread.c
|
@ -3180,7 +3180,8 @@ static int
|
||||||
do_select(int n, rb_fdset_t *read, rb_fdset_t *write, rb_fdset_t *except,
|
do_select(int n, rb_fdset_t *read, rb_fdset_t *write, rb_fdset_t *except,
|
||||||
struct timeval *timeout)
|
struct timeval *timeout)
|
||||||
{
|
{
|
||||||
int result, lerrno;
|
int UNINITIALIZED_VAR(result);
|
||||||
|
int lerrno;
|
||||||
rb_fdset_t UNINITIALIZED_VAR(orig_read);
|
rb_fdset_t UNINITIALIZED_VAR(orig_read);
|
||||||
rb_fdset_t UNINITIALIZED_VAR(orig_write);
|
rb_fdset_t UNINITIALIZED_VAR(orig_write);
|
||||||
rb_fdset_t UNINITIALIZED_VAR(orig_except);
|
rb_fdset_t UNINITIALIZED_VAR(orig_except);
|
||||||
|
|
Loading…
Reference in a new issue