From 71dcc25fb768b0ff8fe49d0d8186d001b98ae469 Mon Sep 17 00:00:00 2001 From: naruse Date: Thu, 1 Nov 2012 19:48:34 +0000 Subject: 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 --- thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'thread.c') diff --git a/thread.c b/thread.c index 01a24ea76c..428f5f46b8 100644 --- a/thread.c +++ b/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; -- cgit v1.2.3