summaryrefslogtreecommitdiffstats
path: root/ruby.c
diff options
context:
space:
mode:
authorocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-06-28 13:09:58 +0000
committerocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-06-28 13:09:58 +0000
commit875cca4c07f6099fdefed69ab2ba2303fe9a388b (patch)
tree8486fd9f2fe613d6891843071ad9ec1ce527c028 /ruby.c
parentfe0e916701d142341e0ca6ae71b64ad871b3c1bb (diff)
downloadruby-875cca4c07f6099fdefed69ab2ba2303fe9a388b.tar.gz
ruby-875cca4c07f6099fdefed69ab2ba2303fe9a388b.tar.xz
ruby-875cca4c07f6099fdefed69ab2ba2303fe9a388b.zip
* dir.c, eval.c, hash.c, process.c, ruby.c: avoid warning "unused
variable" [ruby-dev:26387] (patch from Kazuhiro NISHIYAMA) git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ruby.c b/ruby.c
index 95144f2ee..8862f51b7 100644
--- a/ruby.c
+++ b/ruby.c
@@ -1005,7 +1005,9 @@ set_arg0(val, id)
{
char *s;
long i;
+#if !defined(PSTAT_SETCMD) && !defined(HAVE_SETPROCTITLE)
static int len;
+#endif
if (origargv == 0) rb_raise(rb_eRuntimeError, "$0 not initialized");
StringValue(val);