diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-05-11 00:25:36 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-05-11 00:25:36 +0000 |
commit | 7c68a3121cb8495a076f7318067c98daca3c2311 (patch) | |
tree | 5235e28b03b0cfcf10dadfa962b79225f061276a | |
parent | 7992b0ff39f63a1898e6744d050b89aae3ec6dc2 (diff) | |
download | ruby-7c68a3121cb8495a076f7318067c98daca3c2311.tar.gz |
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
-rw-r--r-- | vm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |