mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 13:04:13 +02:00
* 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
This commit is contained in:
parent
5e42cc3085
commit
01689aa9b1
2 changed files with 7 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue