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:
parent
fa474e56cd
commit
f8fb526ad9
2 changed files with 2 additions and 3 deletions
3
array.c
3
array.c
|
@ -1811,10 +1811,9 @@ ary_enum_length(VALUE ary, VALUE args, VALUE eobj)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
VALUE
|
VALUE
|
||||||
rb_ary_each(VALUE array)
|
rb_ary_each(VALUE ary)
|
||||||
{
|
{
|
||||||
long i;
|
long i;
|
||||||
volatile VALUE ary = array;
|
|
||||||
|
|
||||||
RETURN_SIZED_ENUMERATOR(ary, 0, 0, ary_enum_length);
|
RETURN_SIZED_ENUMERATOR(ary, 0, 0, ary_enum_length);
|
||||||
for (i=0; i<RARRAY_LEN(ary); i++) {
|
for (i=0; i<RARRAY_LEN(ary); i++) {
|
||||||
|
|
2
cont.c
2
cont.c
|
@ -519,7 +519,7 @@ cont_capture(volatile int *stat)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ruby_setjmp(cont->jmpbuf)) {
|
if (ruby_setjmp(cont->jmpbuf)) {
|
||||||
volatile VALUE value;
|
VALUE value;
|
||||||
|
|
||||||
VAR_INITIALIZED(cont);
|
VAR_INITIALIZED(cont);
|
||||||
value = cont->value;
|
value = cont->value;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue