зеркало из https://github.com/github/ruby.git
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:
Родитель
b38e3f953c
Коммит
d780d49b9c
|
@ -1164,7 +1164,6 @@ eval_string_with_cref(VALUE self, VALUE src, VALUE scope, NODE *cref, const char
|
||||||
int state;
|
int state;
|
||||||
VALUE result = Qundef;
|
VALUE result = Qundef;
|
||||||
VALUE envval;
|
VALUE envval;
|
||||||
rb_binding_t *bind = 0;
|
|
||||||
rb_thread_t *th = GET_THREAD();
|
rb_thread_t *th = GET_THREAD();
|
||||||
rb_env_t *env = NULL;
|
rb_env_t *env = NULL;
|
||||||
rb_block_t block, *base_block;
|
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;
|
mild_compile_error = th->mild_compile_error;
|
||||||
TH_PUSH_TAG(th);
|
TH_PUSH_TAG(th);
|
||||||
if ((state = TH_EXEC_TAG()) == 0) {
|
if ((state = TH_EXEC_TAG()) == 0) {
|
||||||
|
rb_binding_t *bind = 0;
|
||||||
rb_iseq_t *iseq;
|
rb_iseq_t *iseq;
|
||||||
volatile VALUE iseqval;
|
volatile VALUE iseqval;
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче