From 5dd2b7102c42cd31a0fec424addbdeaeefb235ac Mon Sep 17 00:00:00 2001 From: matz Date: Thu, 24 Jul 2003 18:33:50 +0000 Subject: * gcc -Wall clean-up. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- hash.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'hash.c') diff --git a/hash.c b/hash.c index bdb206ff56..2dc7b290d8 100644 --- a/hash.c +++ b/hash.c @@ -528,7 +528,6 @@ rb_hash_select(argc, argv, hash) VALUE hash; { VALUE result; - long i; if (!rb_block_given_p()) { #if RUBY_VERSION_CODE < 181 @@ -1424,7 +1423,6 @@ env_select(argc, argv) VALUE *argv; { VALUE result; - long i; char **env; if (!rb_block_given_p()) { @@ -1853,6 +1851,7 @@ Init_Hash() rb_define_singleton_method(envtbl,"inspect", env_inspect, 0); rb_define_singleton_method(envtbl,"rehash", env_none, 0); rb_define_singleton_method(envtbl,"to_a", env_to_a, 0); + rb_define_singleton_method(envtbl,"to_s", env_to_s, 0); rb_define_singleton_method(envtbl,"index", env_index, 1); rb_define_singleton_method(envtbl,"indexes", env_indexes, -1); rb_define_singleton_method(envtbl,"indices", env_indexes, -1); -- cgit v1.2.1