From e3d4de351259c299a461ddabbd4dbb04590400f1 Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 14 May 2017 13:01:46 +0000 Subject: [PATCH] suppress a warning [ci skip] * thread_sync.c (rb_mutex_num_waiting): suppress warning C4700 by VC, uninitialized local variable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58715 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- thread_sync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thread_sync.c b/thread_sync.c index e40e8c2ea8..d33b22173f 100644 --- a/thread_sync.c +++ b/thread_sync.c @@ -60,7 +60,7 @@ static const char* rb_mutex_unlock_th(rb_mutex_t *mutex, rb_thread_t volatile *t 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) {