aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-04 05:33:43 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-04 05:33:43 +0000
commita99d3a62719b0266602e5eafe8a2c15d44ba5da2 (patch)
tree4535b8f1797345f67ea3289e03842bb8c8d457d1
parent9bb642d65aff38f5cf5eba30f3035ec3621a4c2f (diff)
downloadruby-a99d3a62719b0266602e5eafe8a2c15d44ba5da2.tar.gz
unused variables
* io.c (pipe_open): argc and argv are not used on win32. * process.c (rb_spawn_process): remove already useless variables. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35904 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--io.c2
-rw-r--r--process.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/io.c b/io.c
index b6c6157598..10d512a58b 100644
--- a/io.c
+++ b/io.c
@@ -5494,8 +5494,10 @@ pipe_open(struct rb_exec_arg *eargp, VALUE prog, const char *modestr, int fmode,
int write_fd = -1;
#if !defined(HAVE_FORK)
const char *cmd = 0;
+#if !defined(_WIN32)
int argc;
VALUE *argv;
+#endif
if (prog)
cmd = StringValueCStr(prog);
diff --git a/process.c b/process.c
index 8ccfe82995..57e1ed076b 100644
--- a/process.c
+++ b/process.c
@@ -3131,8 +3131,6 @@ rb_spawn_process(struct rb_exec_arg *earg, VALUE prog, char *errmsg, size_t errm
#endif
#if !defined HAVE_FORK || USE_SPAWNV
struct rb_exec_arg sarg;
- int argc;
- VALUE *argv;
#endif
#if defined HAVE_FORK && !USE_SPAWNV