mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Initialize bin
* hash.c (linear_update): initialize `bin` just to silence false warnings by old gcc 4.8. [Bug #15299] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66306 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f798ff4c43
commit
485f3b57bc
1 changed files with 1 additions and 1 deletions
2
hash.c
2
hash.c
|
@ -814,7 +814,7 @@ linear_update(VALUE hash, st_data_t key,
|
|||
st_update_callback_func *func, st_data_t arg)
|
||||
{
|
||||
int retval, existing;
|
||||
unsigned bin;
|
||||
unsigned bin = RHASH_ARRAY_MAX_BOUND;
|
||||
st_data_t value = 0, old_key;
|
||||
st_hash_t hash_value = do_hash(key);
|
||||
|
||||
|
|
Loading…
Reference in a new issue