diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-08 08:53:20 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-08 08:53:20 +0000 |
commit | d4463c42c025eaa06fe5a71e5255031353996c0b (patch) | |
tree | 50f6f0bd18b0b143a9d4f087462f2cda6a4833af | |
parent | cf95a55cc9015fbb6b906d37d68589d4362edff4 (diff) | |
download | ruby-d4463c42c025eaa06fe5a71e5255031353996c0b.tar.gz |
* enum.c (enum_count): suppress warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14136 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | enum.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -123,7 +123,9 @@ enum_count(int argc, VALUE *argv, VALUE obj) return INT2NUM(n); } else { - rb_scan_args(argc, argv, "1", &argv[0]); + VALUE v; + rb_scan_args(argc, argv, "1", &v); + return Qnil; /* not reached */ } } |