mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
dc6d7cc58e
commit
e3d4de3512
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue