ruby-changes:54085
From: nobu <ko1@a...>
Date: Mon, 10 Dec 2018 11:01:24 +0900 (JST)
Subject: [ruby-changes:54085] nobu:r66306 (trunk): Initialize bin
nobu 2018-12-10 11:01:21 +0900 (Mon, 10 Dec 2018) New Revision: 66306 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66306 Log: Initialize bin * hash.c (linear_update): initialize `bin` just to silence false warnings by old gcc 4.8. [Bug #15299] Modified files: trunk/hash.c Index: hash.c =================================================================== --- hash.c (revision 66305) +++ hash.c (revision 66306) @@ -814,7 +814,7 @@ linear_update(VALUE hash, st_data_t key, https://github.com/ruby/ruby/blob/trunk/hash.c#L814 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); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/