From e5633967eac299edab650bc77edfcebf3f2bd871 Mon Sep 17 00:00:00 2001 From: nagachika Date: Sat, 15 Jun 2013 15:58:52 +0000 Subject: merge revision(s) 41315: [Backport #8436] 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] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@41318 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_eval.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vm_eval.c') diff --git a/vm_eval.c b/vm_eval.c index a152a6990e..d95f040bc2 100644 --- a/vm_eval.c +++ b/vm_eval.c @@ -1157,7 +1157,6 @@ eval_string_with_cref(VALUE self, VALUE src, VALUE scope, NODE *cref, const char 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; @@ -1176,6 +1175,7 @@ eval_string_with_cref(VALUE self, VALUE src, VALUE scope, NODE *cref, const char 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)) { -- cgit v1.2.3