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
This commit is contained in:
nobu 2012-06-04 05:33:43 +00:00
parent 9bb642d65a
commit a99d3a6271
2 changed files with 2 additions and 2 deletions

2
io.c
View File

@ -5494,8 +5494,10 @@ pipe_open(struct rb_exec_arg *eargp, VALUE prog, const char *modestr, int fmode,
int write_fd = -1; int write_fd = -1;
#if !defined(HAVE_FORK) #if !defined(HAVE_FORK)
const char *cmd = 0; const char *cmd = 0;
#if !defined(_WIN32)
int argc; int argc;
VALUE *argv; VALUE *argv;
#endif
if (prog) if (prog)
cmd = StringValueCStr(prog); cmd = StringValueCStr(prog);

View File

@ -3131,8 +3131,6 @@ rb_spawn_process(struct rb_exec_arg *earg, VALUE prog, char *errmsg, size_t errm
#endif #endif
#if !defined HAVE_FORK || USE_SPAWNV #if !defined HAVE_FORK || USE_SPAWNV
struct rb_exec_arg sarg; struct rb_exec_arg sarg;
int argc;
VALUE *argv;
#endif #endif
#if defined HAVE_FORK && !USE_SPAWNV #if defined HAVE_FORK && !USE_SPAWNV