diff --git a/ChangeLog b/ChangeLog index ccc59c916b..5ccfd0d1a8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Nov 29 09:52:08 2012 NARUSE, Yui + + * thread.c (do_select): suppress warning (uninitialized value warning) + with UNINITIALIZED_VAR(). + Thu Nov 29 09:36:09 2012 Koichi Sasada * eval.c (ruby_cleanup): delay THREAD_KILLED timing. diff --git a/thread.c b/thread.c index 56891bc89c..a56f264a6c 100644 --- a/thread.c +++ b/thread.c @@ -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);