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

ruby-changes:20113

From: akr <ko1@a...>
Date: Sat, 18 Jun 2011 11:14:29 +0900 (JST)
Subject: [ruby-changes:20113] akr:r32159 (trunk): * io.c: supress warnings.

akr	2011-06-18 11:10:09 +0900 (Sat, 18 Jun 2011)

  New Revision: 32159

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

  Log:
    * io.c: supress warnings.

  Modified files:
    trunk/ChangeLog
    trunk/io.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 32158)
+++ ChangeLog	(revision 32159)
@@ -1,3 +1,7 @@
+Sat Jun 18 11:09:03 2011  Tanaka Akira  <akr@f...>
+
+	* io.c: supress warnings.
+
 Sat Jun 18 10:22:39 2011  Tanaka Akira  <akr@f...>
 
 	* internal.h: declare more internal functions.
Index: io.c
===================================================================
--- io.c	(revision 32158)
+++ io.c	(revision 32159)
@@ -7470,7 +7470,8 @@
     ias.offset = offset;
     ias.len    = len;
 
-    if (rv = (int)rb_thread_io_blocking_region(io_advise_internal, &ias, fptr->fd))
+    rv = (int)rb_thread_io_blocking_region(io_advise_internal, &ias, fptr->fd);
+    if (rv)
 	/* posix_fadvise(2) doesn't set errno. On success it returns 0; otherwise
 	   it returns the error code. */
 	rb_syserr_fail(rv, RSTRING_PTR(fptr->pathv));
@@ -8539,11 +8540,12 @@
 #if defined(ERESTART)
       case ERESTART:
 #endif
-	if (rb_thread_interrupted(stp->th))
+	if (rb_thread_interrupted(stp->th)) {
             if (has_gvl)
                 rb_thread_execute_interrupts(stp->th);
             else
                 rb_thread_call_with_gvl(exec_interrupts, (void *)stp->th);
+        }
 	return TRUE;
     }
     return FALSE;

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

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