ruby-changes:46599
From: nobu <ko1@a...>
Date: Sun, 14 May 2017 22:01:53 +0900 (JST)
Subject: [ruby-changes:46599] nobu:r58715 (trunk): suppress a warning [ci skip]
nobu 2017-05-14 22:01:46 +0900 (Sun, 14 May 2017) New Revision: 58715 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58715 Log: suppress a warning [ci skip] * thread_sync.c (rb_mutex_num_waiting): suppress warning C4700 by VC, uninitialized local variable. Modified files: trunk/thread_sync.c Index: thread_sync.c =================================================================== --- thread_sync.c (revision 58714) +++ thread_sync.c (revision 58715) @@ -60,7 +60,7 @@ static const char* rb_mutex_unlock_th(rb https://github.com/ruby/ruby/blob/trunk/thread_sync.c#L60 static size_t rb_mutex_num_waiting(rb_mutex_t *mutex) { - struct mutex_waiter *w; + struct mutex_waiter *w = 0; size_t n = 0; list_for_each(&mutex->waitq, w, node) { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/