ruby-changes:26133
From: kosaki <ko1@a...>
Date: Wed, 5 Dec 2012 01:06:51 +0900 (JST)
Subject: [ruby-changes:26133] kosaki:r38190 (trunk): supress warning
kosaki 2012-12-05 01:06:43 +0900 (Wed, 05 Dec 2012) New Revision: 38190 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=38190 Log: supress warning Modified files: trunk/thread.c Index: thread.c =================================================================== --- thread.c (revision 38189) +++ thread.c (revision 38190) @@ -4202,7 +4202,7 @@ while (mutex->th != th) { int interrupted; enum rb_thread_status prev_status = th->status; - int timeout_ms = 0; + volatile int timeout_ms = 0; struct rb_unblock_callback oldubf; set_unblock_function(th, lock_interrupt, mutex, &oldubf, FALSE); @@ -4223,7 +4223,7 @@ } GVL_UNLOCK_BEGIN(); - interrupted = lock_func(th, mutex, timeout_ms); + interrupted = lock_func(th, mutex, (int)timeout_ms); native_mutex_unlock(&mutex->lock); GVL_UNLOCK_END(); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/