From 485f3b57bc00fa7e4035417e98da146b3299b970 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 10 Dec 2018 02:01:21 +0000 Subject: [PATCH] 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 --- hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hash.c b/hash.c index 63333b6b5f..a98c4da71a 100644 --- a/hash.c +++ b/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);