ruby-changes:57876
From: =E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3 <ko1@a...>
Date: Tue, 24 Sep 2019 12:08:05 +0900 (JST)
Subject: [ruby-changes:57876] 14ba62d488 (master): refactor delete unused variable
https://git.ruby-lang.org/ruby.git/commit/?id=14ba62d488 From 14ba62d4881061a1d54b6204b0c4f0b4811ac921 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?= <shyouhei@r...> Date: Tue, 24 Sep 2019 11:44:41 +0900 Subject: refactor delete unused variable cadfaacb2533d47d52dbb5dbefe724d7bf11112e missed it. diff --git a/vm.c b/vm.c index 70f9602..b76f920 100644 --- a/vm.c +++ b/vm.c @@ -3227,13 +3227,12 @@ Init_VM(void) https://github.com/ruby/ruby/blob/trunk/vm.c#L3227 rb_thread_t *th = GET_THREAD(); VALUE filename = rb_fstring_lit("<main>"); const rb_iseq_t *iseq = rb_iseq_new(0, filename, filename, Qnil, 0, ISEQ_TYPE_TOP); - volatile VALUE th_self; /* create vm object */ vm->self = TypedData_Wrap_Struct(rb_cRubyVM, &vm_data_type, vm); /* create main thread */ - th_self = th->self = TypedData_Wrap_Struct(rb_cThread, &thread_data_type, th); + th->self = TypedData_Wrap_Struct(rb_cThread, &thread_data_type, th); vm->main_thread = th; vm->running_thread = th; th->vm = vm; -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/