Unnecessary volatile
* vm_eval.c (rb_yield_splat, eval_string_with_cref): remove unnecessary volatile outside PUSH_TAG/POP_TAG. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c15ad4a4ac
commit
d0b92e798f
@ -1068,7 +1068,7 @@ VALUE
|
||||
rb_yield_splat(VALUE values)
|
||||
{
|
||||
VALUE tmp = rb_check_array_type(values);
|
||||
volatile VALUE v;
|
||||
VALUE v;
|
||||
if (NIL_P(tmp)) {
|
||||
rb_raise(rb_eArgError, "not an array");
|
||||
}
|
||||
@ -1298,11 +1298,8 @@ eval_string_with_cref(VALUE self, VALUE src, VALUE scope, rb_cref_t *const cref_
|
||||
rb_thread_t *th = GET_THREAD();
|
||||
rb_env_t *env = NULL;
|
||||
rb_block_t block, *base_block;
|
||||
volatile VALUE file;
|
||||
volatile int line;
|
||||
|
||||
file = filename ? filename : rb_source_location(&lineno);
|
||||
line = lineno;
|
||||
VALUE file = filename ? filename : rb_source_location(&lineno);
|
||||
int line = lineno;
|
||||
|
||||
{
|
||||
rb_cref_t *cref = cref_arg;
|
||||
|
Loading…
x
Reference in New Issue
Block a user