summaryrefslogtreecommitdiff
path: root/thread_sync.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-14 13:01:46 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-14 13:01:46 (GMT)
commite3d4de351259c299a461ddabbd4dbb04590400f1 (patch)
treed26d091316cb4961d8efb4033135680c3555f8e7 /thread_sync.c
parentdc6d7cc58e78903e8309ff94c9e7112d661646ee (diff)
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
Diffstat (limited to 'thread_sync.c')
-rw-r--r--thread_sync.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thread_sync.c b/thread_sync.c
index e40e8c2..d33b221 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) {