summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-09-05 12:03:54 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-09-05 12:03:54 +0000
commit01689aa9b16a2d78b21c5d037beeda4eb201d1f6 (patch)
treec3979c0bc4fb25e2c6ccf84d7429cf05bd313a7b /process.c
parent5e42cc30855e7f84fb9269421d7710152eb00557 (diff)
* process.c (handle_fork_error): Make try_gc_p argument volatile to
suppress "clobbered" warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
-rw-r--r--process.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/process.c b/process.c
index 165e769..5dd505b 100644
--- a/process.c
+++ b/process.c
@@ -3159,7 +3159,7 @@ pipe_nocrash(int filedes[2], VALUE fds)
#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, int *ep,
char *errmsg, size_t errmsg_buflen)
{
rb_pid_t pid;
- int try_gc = 1;
+ volatile int try_gc = 1;
while (1) {
prefork();