diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-07-16 20:26:32 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-07-16 20:26:32 +0000 |
commit | a6977f074b40be9892ee80e4e3805241bbe65466 (patch) | |
tree | c08837540c37fb22d8bac3ca980e23e425d10589 /thread.c | |
parent | 55131e3112ff1c4c978d2fa34f5379a11fbcb234 (diff) | |
download | ruby-a6977f074b40be9892ee80e4e3805241bbe65466.tar.gz |
thread.c (mutex_alloc): remove needless volatile
Allocation functions do not do anything non-obvious to the
compiler, so there's no reason for volatile here.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51271 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r-- | thread.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -4189,7 +4189,7 @@ rb_obj_is_mutex(VALUE obj) static VALUE mutex_alloc(VALUE klass) { - VALUE volatile obj; + VALUE obj; rb_mutex_t *mutex; obj = TypedData_Make_Struct(klass, rb_mutex_t, &mutex_data_type, mutex); |