summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-08-05 15:40:06 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-08-05 15:40:06 +0000
commitd97cd39f42f1aebfab4e98fb78ea915bf448546b (patch)
tree619858e731619cb700e9d39770fdb0e646a1a53f /io.c
parent95512f277788ec12b4d368e337dc7397944e1183 (diff)
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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/io.c b/io.c
index 33b609e915..52eb49574b 100644
--- a/io.c
+++ b/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;