summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-28 11:12:36 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-28 11:12:36 +0000
commitcfe9dcb886b225e5607e0bc13b591f9c4a020daa (patch)
tree30db52afb4a43f0e36e1513fb443c21149aa0d61 /thread.c
parent2ba6eec1fa50cacaff647525358fd93c7c862a27 (diff)
* eval_error.c (error_print): use volatile to suppress warnings.
* vm_eval.c (eval_string_with_cref): ditto. * thread.c (rb_exec_recursive): ditto. * eval_jump.c (rb_exec_end_proc): ditto. * eval.c (ruby_exec_node): ditto. (rb_longjmp): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22677 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thread.c b/thread.c
index 38e46c3daa..a2c882cfff 100644
--- a/thread.c
+++ b/thread.c
@@ -3345,7 +3345,7 @@ recursive_pop(VALUE hash, VALUE obj)
VALUE
rb_exec_recursive(VALUE (*func) (VALUE, VALUE, int), VALUE obj, VALUE arg)
{
- VALUE hash = rb_thread_local_aref(rb_thread_current(), recursive_key);
+ volatile VALUE hash = rb_thread_local_aref(rb_thread_current(), recursive_key);
VALUE objid = rb_obj_id(obj);
if (recursive_check(hash, objid)) {