diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-08-05 15:40:06 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-08-05 15:40:06 +0000 |
commit | d97cd39f42f1aebfab4e98fb78ea915bf448546b (patch) | |
tree | 619858e731619cb700e9d39770fdb0e646a1a53f /io.c | |
parent | 95512f277788ec12b4d368e337dc7397944e1183 (diff) | |
download | ruby-d97cd39f42f1aebfab4e98fb78ea915bf448546b.tar.gz |
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
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |