summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-13 10:52:11 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-13 10:52:11 (GMT)
commitf8fb526ad9e9f31453bffbc908b6a986736e21a7 (patch)
tree92235aa38b42e1d8693fc188809b18305419edba
parentfa474e56cd9aac932454bf5fb9748d5472a946fb (diff)
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.c3
-rw-r--r--cont.c2
2 files changed, 2 insertions, 3 deletions
diff --git a/array.c b/array.c
index 132528d..27b6325 100644
--- a/array.c
+++ b/array.c
@@ -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++) {
diff --git a/cont.c b/cont.c
index 2ac2b3d..d5d8925 100644
--- a/cont.c
+++ b/cont.c
@@ -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;