summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-08-03 06:03:50 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-08-03 06:03:50 +0000
commit8610ea732ad318e6572f20e39cbf385b4bb286bb (patch)
tree9671e964e715af38d4cf882fa0c0ec5a11e3b674
parentbcd35a6c79fed93aeb3ea4783a85caeab26e7e09 (diff)
object.c: suppress warning
* object.c (rb_obj_clone2): remove set but not used variable to suppress unused-but-set-variable warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55807 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--object.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/object.c b/object.c
index 5cd3263..a4a87db 100644
--- a/object.c
+++ b/object.c
@@ -331,12 +331,11 @@ rb_obj_clone2(int argc, VALUE *argv, VALUE obj)
VALUE clone;
VALUE singleton;
VALUE kwfreeze = Qtrue;
- int n;
if (!keyword_ids[0]) {
CONST_ID(keyword_ids[0], "freeze");
}
- n = rb_scan_args(argc, argv, "0:", &opt);
+ rb_scan_args(argc, argv, "0:", &opt);
if (!NIL_P(opt)) {
rb_get_kwargs(opt, keyword_ids, 0, 1, kwargs);
kwfreeze = kwargs[0];