summaryrefslogtreecommitdiffstats
path: root/eval.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 /eval.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 'eval.c')
-rw-r--r--eval.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/eval.c b/eval.c
index c1e4c983a..886914c42 100644
--- a/eval.c
+++ b/eval.c
@@ -6035,7 +6035,7 @@ rb_call_super(argc, argv)
int argc;
const VALUE *argv;
{
- VALUE result, self, klass, k;
+ VALUE result, self, klass;
if (ruby_frame->last_class == 0) {
rb_name_error(ruby_frame->last_func, "calling `super' from `%s' is prohibited",
@@ -10648,7 +10648,9 @@ rb_thread_select(max, read, write, except, timeout)
fd_set *read, *write, *except;
struct timeval *timeout;
{
+#ifndef linux
double limit;
+#endif
int n;
if (!read && !write && !except) {
@@ -10660,10 +10662,12 @@ rb_thread_select(max, read, write, except, timeout)
return 0;
}
+#ifndef linux
if (timeout) {
limit = timeofday()+
(double)timeout->tv_sec+(double)timeout->tv_usec*1e-6;
}
+#endif
if (rb_thread_critical ||
curr_thread == curr_thread->next ||
@@ -11509,7 +11513,7 @@ rb_thread_start_0(fn, arg, th)
{
volatile rb_thread_t th_save = th;
volatile VALUE thread = th->thread;
- struct BLOCK *volatile saved_block = 0, *block;
+ struct BLOCK *volatile saved_block = 0;
enum thread_status status;
int state;
@@ -12353,7 +12357,6 @@ rb_callcc(self)
volatile rb_thread_t th_save;
struct tag *tag;
struct RVarmap *vars;
- struct BLOCK *blk;
THREAD_ALLOC(th);
cont = Data_Wrap_Struct(rb_cCont, thread_mark, thread_free, th);