initialize a local variable to avoid warning

parent 351614bb
...@@ -27,6 +27,8 @@ enum_update_hash(mrb_state *mrb, mrb_value self) ...@@ -27,6 +27,8 @@ enum_update_hash(mrb_state *mrb, mrb_value self)
#endif #endif
else { else {
mrb_raise(mrb, E_TYPE_ERROR, "can't calculate hash"); mrb_raise(mrb, E_TYPE_ERROR, "can't calculate hash");
/* not reached */
hv = 0;
} }
hash ^= (hv << (index % 16)); hash ^= (hv << (index % 16));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment