mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
b38e3f953c
commit
d780d49b9c
1 changed files with 1 additions and 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;
|
||||
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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue