ruby-changes:29263
From: nobu <ko1@a...>
Date: Sun, 16 Jun 2013 00:31:56 +0900 (JST)
Subject: [ruby-changes:29263] nobu:r41315 (trunk): vm_eval.c: suppress warning
nobu 2013-06-16 00:31:44 +0900 (Sun, 16 Jun 2013) New Revision: 41315 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=41315 Log: vm_eval.c: suppress warning * vm_eval.c (eval_string_with_cref): move absolute_path inside non-exception block, since it is used only there. [Bug #8436] Modified files: trunk/vm_eval.c Index: vm_eval.c =================================================================== --- vm_eval.c (revision 41314) +++ vm_eval.c (revision 41315) @@ -1164,7 +1164,6 @@ eval_string_with_cref(VALUE self, VALUE https://github.com/ruby/ruby/blob/trunk/vm_eval.c#L1164 int state; VALUE result = Qundef; VALUE envval; - VALUE absolute_path = Qnil; rb_thread_t *th = GET_THREAD(); rb_env_t *env = NULL; rb_block_t block, *base_block; @@ -1183,6 +1182,7 @@ eval_string_with_cref(VALUE self, VALUE https://github.com/ruby/ruby/blob/trunk/vm_eval.c#L1182 rb_binding_t *bind = 0; rb_iseq_t *iseq; volatile VALUE iseqval; + VALUE absolute_path = Qnil; if (scope != Qnil) { if (rb_obj_is_kind_of(scope, rb_cBinding)) { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/