From 875cca4c07f6099fdefed69ab2ba2303fe9a388b Mon Sep 17 00:00:00 2001 From: ocean Date: Tue, 28 Jun 2005 13:09:58 +0000 Subject: * 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 --- ruby.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ruby.c') 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); -- cgit