summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2018-06-22 12:03:52 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2018-06-22 12:03:52 +0900
commit7e798405874ee3a4e3019436d8560641a5048dd3 (patch)
treee95530ac32dec42d14c3b53288729c746efbed52 /src
parent351614bbddb5f612ecf9572e975e78e058d2bf11 (diff)
downloadmruby-7e798405874ee3a4e3019436d8560641a5048dd3.tar.gz
mruby-7e798405874ee3a4e3019436d8560641a5048dd3.zip
initialize a local variable to avoid warning
Diffstat (limited to 'src')
-rw-r--r--src/enum.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/enum.c b/src/enum.c
index ea05777b3..03508953e 100644
--- a/src/enum.c
+++ b/src/enum.c
@@ -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));