summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-16 06:22:37 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-16 06:22:37 +0000
commitc569163e9e20bbba9dc49aa59d32ce08445df509 (patch)
treeaaf9b041444681d79a8d084639aa82ce433cbec1
parent2bb561ea5f96f8b6edd622be16be89ee6af3cd7e (diff)
* process.c (rb_spawn_internal): suppressed a warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22975 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--process.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/process.c b/process.c
index 11f5009488b..35b78d9e21e 100644
--- a/process.c
+++ b/process.c
@@ -2838,7 +2838,9 @@ rb_spawn_internal(int argc, VALUE *argv, int default_close_others,
char *errmsg, size_t errmsg_buflen)
{
rb_pid_t pid;
+#if defined HAVE_FORK || !defined HAVE_SPAWNV
int status;
+#endif
VALUE prog;
struct rb_exec_arg earg;
#if !defined HAVE_FORK