From 08f234445cf412aad68fb8b5396b026bdad4bc29 Mon Sep 17 00:00:00 2001 From: normal Date: Thu, 16 Jul 2015 20:26:32 +0000 Subject: 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 --- thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'thread.c') diff --git a/thread.c b/thread.c index 95b022f542..644dfe2f31 100644 --- a/thread.c +++ b/thread.c @@ -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); -- cgit v1.2.3