diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-15 15:31:44 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-15 15:31:44 +0000 |
commit | 74868d8bfeb3778218fe69d3f2afe3cc9ad2c558 (patch) | |
tree | 718364823f766d18a7d57341fd90f4bd9816af23 /vm_eval.c | |
parent | 392def5b71d74f6c1061a17fe858a601f17e1abb (diff) | |
download | ruby-74868d8bfeb3778218fe69d3f2afe3cc9ad2c558.tar.gz |
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
Diffstat (limited to 'vm_eval.c')
-rw-r--r-- | vm_eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)) { |