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

ruby-changes:35329

From: akr <ko1@a...>
Date: Fri, 5 Sep 2014 21:04:03 +0900 (JST)
Subject: [ruby-changes:35329] akr:r47411 (trunk): * process.c (handle_fork_error): Make try_gc_p argument volatile to

akr	2014-09-05 21:03:54 +0900 (Fri, 05 Sep 2014)

  New Revision: 47411

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

  Log:
    * process.c (handle_fork_error): Make try_gc_p argument volatile to
      suppress "clobbered" warning.

  Modified files:
    trunk/ChangeLog
    trunk/process.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 47410)
+++ ChangeLog	(revision 47411)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Sep  5 21:02:54 2014  Tanaka Akira  <akr@f...>
+
+	* process.c (handle_fork_error): Make try_gc_p argument volatile to
+	  suppress "clobbered" warning.
+
 Fri Sep  5 20:48:06 2014  Tanaka Akira  <akr@f...>
 
 	* process.c (handle_fork_error): Don't need state_p argument.
Index: process.c
===================================================================
--- process.c	(revision 47410)
+++ process.c	(revision 47411)
@@ -3159,7 +3159,7 @@ pipe_nocrash(int filedes[2], VALUE fds) https://github.com/ruby/ruby/blob/trunk/process.c#L3159
 #endif
 
 static int
-handle_fork_error(int *status, int *ep, int *try_gc_p)
+handle_fork_error(int *status, int *ep, volatile int *try_gc_p)
 {
     int state = 0;
 
@@ -3390,7 +3390,7 @@ retry_fork_async_signal_safe(int *status https://github.com/ruby/ruby/blob/trunk/process.c#L3390
         char *errmsg, size_t errmsg_buflen)
 {
     rb_pid_t pid;
-    int try_gc = 1;
+    volatile int try_gc = 1;
 
     while (1) {
         prefork();

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

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