initialize a local variable to avoid warning

This commit is contained in:
Yukihiro "Matz" Matsumoto
2018-06-22 12:03:52 +09:00
parent 351614bbdd
commit 7e79840587
+2
View File
@@ -27,6 +27,8 @@ enum_update_hash(mrb_state *mrb, mrb_value self)
#endif
else {
mrb_raise(mrb, E_TYPE_ERROR, "can't calculate hash");
/* not reached */
hv = 0;
}
hash ^= (hv << (index % 16));