diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-07-13 10:52:11 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-07-13 10:52:11 +0000 |
commit | f8fb526ad9e9f31453bffbc908b6a986736e21a7 (patch) | |
tree | 92235aa38b42e1d8693fc188809b18305419edba | |
parent | fa474e56cd9aac932454bf5fb9748d5472a946fb (diff) | |
download | ruby-f8fb526ad9e9f31453bffbc908b6a986736e21a7.tar.gz |
remove needless volatile
* array.c (rb_ary_each): remove needless volatile for outdated
clang 3.0. revert r32201.
* cont.c (cont_capture): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51227 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | array.c | 3 | ||||
-rw-r--r-- | cont.c | 2 |
2 files changed, 2 insertions, 3 deletions
@@ -1811,10 +1811,9 @@ ary_enum_length(VALUE ary, VALUE args, VALUE eobj) */ VALUE -rb_ary_each(VALUE array) +rb_ary_each(VALUE ary) { long i; - volatile VALUE ary = array; RETURN_SIZED_ENUMERATOR(ary, 0, 0, ary_enum_length); for (i=0; i<RARRAY_LEN(ary); i++) { @@ -519,7 +519,7 @@ cont_capture(volatile int *stat) } if (ruby_setjmp(cont->jmpbuf)) { - volatile VALUE value; + VALUE value; VAR_INITIALIZED(cont); value = cont->value; |