From d780d49b9c1a3794c9894e341d8d34b0a290d31e Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 15 May 2013 08:06:07 +0000 Subject: vm_eval.c: suppress warning * vm_eval.c (eval_string_with_cref): narrow a variable scope into the EXEC_TAG block to suppress -Wclobberd warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40759 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 783bbfe3b5..b4efcdb162 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; - rb_binding_t *bind = 0; rb_thread_t *th = GET_THREAD(); rb_env_t *env = NULL; rb_block_t block, *base_block; @@ -1180,6 +1179,7 @@ eval_string_with_cref(VALUE self, VALUE src, VALUE scope, NODE *cref, const char mild_compile_error = th->mild_compile_error; TH_PUSH_TAG(th); if ((state = TH_EXEC_TAG()) == 0) { + rb_binding_t *bind = 0; rb_iseq_t *iseq; volatile VALUE iseqval; -- cgit v1.2.3