зеркало из https://github.com/github/ruby.git
vm.c: suppress a warning
* vm.c (rb_vm_living_threads_foreach): suppress "uninitialized" warning where "typeof" is unavailable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45915 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
7992b0ff39
Коммит
7c68a3121c
2
vm.c
2
vm.c
|
@ -2999,7 +2999,7 @@ void
|
|||
rb_vm_living_threads_foreach(rb_vm_t *vm,
|
||||
int (*fn)(rb_thread_t *, void*), void *arg)
|
||||
{
|
||||
rb_thread_t *cur, *next;
|
||||
rb_thread_t *cur = NULL, *next;
|
||||
list_for_each_safe(&vm->living_threads, cur, next, vmlt_node) {
|
||||
int rc = fn(cur, arg);
|
||||
switch (rc) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче