1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
nobu 2015-07-13 10:52:11 +00:00
parent fa474e56cd
commit f8fb526ad9
2 changed files with 2 additions and 3 deletions

View file

@ -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++) {

2
cont.c
View file

@ -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;