summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-11 00:25:36 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-11 00:25:36 +0000
commit7c68a3121cb8495a076f7318067c98daca3c2311 (patch)
tree5235e28b03b0cfcf10dadfa962b79225f061276a /vm.c
parent7992b0ff39f63a1898e6744d050b89aae3ec6dc2 (diff)
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
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm.c b/vm.c
index cba2a7f896..87e0783812 100644
--- a/vm.c
+++ b/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) {