[前][次][番号順一覧][スレッド一覧]

ruby-changes:27811

From: nobu <ko1@a...>
Date: Thu, 21 Mar 2013 23:18:22 +0900 (JST)
Subject: [ruby-changes:27811] nobu:r39863 (trunk): * thread_win32.c (native_sleep): suppress warning.

nobu	2013-03-21 23:17:46 +0900 (Thu, 21 Mar 2013)

  New Revision: 39863

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=39863

  Log:
    * thread_win32.c (native_sleep): suppress warning.

  Modified files:
    trunk/thread_win32.c

Index: thread_win32.c
===================================================================
--- thread_win32.c	(revision 39862)
+++ thread_win32.c	(revision 39863)
@@ -301,7 +301,7 @@ rb_w32_Sleep(unsigned long msec) https://github.com/ruby/ruby/blob/trunk/thread_win32.c#L301
 static void
 native_sleep(rb_thread_t *th, struct timeval *tv)
 {
-    const DWORD msec = (tv) ?
+    const volatile DWORD msec = (tv) ?
 	(DWORD)(tv->tv_sec * 1000 + tv->tv_usec / 1000) : INFINITE;
 
     GVL_UNLOCK_BEGIN();

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]