summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-09-12 21:34:25 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-09-12 21:34:25 +0000
commit2e33fdfbcad63ae4da6ef04e75ed8073ad9afe0f (patch)
treeeeda449721dc7ba3ce3c72e35d68471ad16fcdb5 /vm.c
parent1972a3136c52393b9597f2eb6262e9ccd11e84b8 (diff)
vm.c (thread_alloc): remove needless volatile
If we needed a volatile there, every other alloc function would need it. There is nothing special I can see about thread_alloc which would justify it. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm.c b/vm.c
index 341b04de09..0c45f96c38 100644
--- a/vm.c
+++ b/vm.c
@@ -2121,7 +2121,7 @@ rb_obj_is_thread(VALUE obj)
static VALUE
thread_alloc(VALUE klass)
{
- VALUE volatile obj;
+ VALUE obj;
rb_thread_t *th;
obj = TypedData_Make_Struct(klass, rb_thread_t, &thread_data_type, th);