mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
io.c: suppress unused variable warnings
* io.c (pipe_open): suppress warnings agains variable which are used when spawnv is available but fork is not. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36632 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
95512f2777
commit
d97cd39f42
1 changed files with 2 additions and 0 deletions
2
io.c
2
io.c
|
@ -5506,8 +5506,10 @@ pipe_open(VALUE execarg_obj, const char *modestr, int fmode, convconfig_t *convc
|
|||
spawnv(P_NOWAIT, (cmd), (args)) : \
|
||||
spawn(P_NOWAIT, (cmd)))
|
||||
# endif
|
||||
# if !defined(HAVE_FORK)
|
||||
char **args = NULL;
|
||||
char **envp = NULL;
|
||||
# endif
|
||||
#endif
|
||||
#if !defined(HAVE_FORK)
|
||||
struct rb_execarg sarg, *sargp = &sarg;
|
||||
|
|
Loading…
Add table
Reference in a new issue