ruby-changes:23853
From: nobu <ko1@a...>
Date: Mon, 4 Jun 2012 14:33:53 +0900 (JST)
Subject: [ruby-changes:23853] nobu:r35904 (trunk): unused variables
nobu 2012-06-04 14:33:43 +0900 (Mon, 04 Jun 2012) New Revision: 35904 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=35904 Log: unused variables * io.c (pipe_open): argc and argv are not used on win32. * process.c (rb_spawn_process): remove already useless variables. Modified files: trunk/io.c trunk/process.c Index: io.c =================================================================== --- io.c (revision 35903) +++ io.c (revision 35904) @@ -5494,8 +5494,10 @@ 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); Index: process.c =================================================================== --- process.c (revision 35903) +++ process.c (revision 35904) @@ -3131,8 +3131,6 @@ #endif #if !defined HAVE_FORK || USE_SPAWNV struct rb_exec_arg sarg; - int argc; - VALUE *argv; #endif #if defined HAVE_FORK && !USE_SPAWNV -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/