From 74868d8bfeb3778218fe69d3f2afe3cc9ad2c558 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 15 Jun 2013 15:31:44 +0000 Subject: [PATCH] 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/trunk@41315 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_eval.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm_eval.c b/vm_eval.c index 3895e5628c..80ed1bd0be 100644 --- a/vm_eval.c +++ b/vm_eval.c @@ -1164,7 +1164,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; @@ -1183,6 +1182,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)) {