summaryrefslogtreecommitdiff
path: root/class.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-07-27 07:13:43 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-07-27 07:13:43 +0000
commit7175a9073ea23abe565f606aa042ea015c7340b9 (patch)
treee45b4a7e274129e45db816f414ae7a4a797b95b1 /class.c
parent9cce6d1071c3d84d07db891fab781620a287a9fe (diff)
* class.c, compile.c, dir.c, file.c, iseq.c, parse.y, random.c:
clean unused-value warnings. * cont.c, process.c, vm_exec.h: clean cast warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28762 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'class.c')
-rw-r--r--class.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/class.c b/class.c
index 7cc7551b62..7e2f40b0a3 100644
--- a/class.c
+++ b/class.c
@@ -1274,7 +1274,7 @@ rb_singleton_class(VALUE obj)
VALUE klass = singleton_class_of(obj);
/* ensures an exposed class belongs to its own eigenclass */
- if (TYPE(obj) == T_CLASS) ENSURE_EIGENCLASS(klass);
+ if (TYPE(obj) == T_CLASS) (void)ENSURE_EIGENCLASS(klass);
return klass;
}