diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-29 00:52:51 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-29 00:52:51 +0000 |
commit | e2779a53ef78eddfe464fc5c9821e7c43f061597 (patch) | |
tree | 0f5e89b9685147ffff0e224dc7490bf205194cf5 /thread.c | |
parent | 98ed344ae9c97d2b273c57f35c6bde9761b1906a (diff) |
* 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
Diffstat (limited to 'thread.c')
-rw-r--r-- | thread.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -3180,7 +3180,8 @@ static int do_select(int n, rb_fdset_t *read, rb_fdset_t *write, rb_fdset_t *except, 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_write); rb_fdset_t UNINITIALIZED_VAR(orig_except); |