ruby-changes:40365
From: nobu <ko1@a...>
Date: Wed, 4 Nov 2015 15:59:27 +0900 (JST)
Subject: [ruby-changes:40365] nobu:r52446 (trunk): variable.c: suppress a warning
nobu 2015-11-04 15:59:15 +0900 (Wed, 04 Nov 2015) New Revision: 52446 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=52446 Log: variable.c: suppress a warning * variable.c (autoload_reset): initialize formally to suppress a warning from container_off_var() by Visual C. Modified files: trunk/variable.c Index: variable.c =================================================================== --- variable.c (revision 52445) +++ variable.c (revision 52446) @@ -2128,7 +2128,7 @@ autoload_reset(VALUE arg) https://github.com/ruby/ruby/blob/trunk/variable.c#L2128 /* wakeup any waiters we had */ if (need_wakeups) { - struct autoload_state *cur, *nxt; + struct autoload_state *cur = 0, *nxt; list_for_each_safe(&state->waitq.head, cur, nxt, waitq.node) { VALUE th = cur->thread; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/