From d0b92e798feb650cbb912d3b4bc4546a1caac6ad Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 18 Jun 2016 01:50:46 +0000 Subject: 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 --- vm_eval.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/vm_eval.c b/vm_eval.c index f1ecd78a90..2845913d53 100644 --- a/vm_eval.c +++ b/vm_eval.c @@ -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; -- cgit v1.2.3