From 7c68a3121cb8495a076f7318067c98daca3c2311 Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 11 May 2014 00:25:36 +0000 Subject: 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 --- vm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vm.c') diff --git a/vm.c b/vm.c index cba2a7f..87e0783 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) { -- cgit v1.1