Merge pull request #4197 from shuujii/suppress-struct-initializer-warn

Suppress a struct initializer warning
This commit is contained in:
Yukihiro "Matz" Matsumoto
2018-12-23 22:26:55 +09:00
committed by GitHub
+1 -1
View File
@@ -101,7 +101,7 @@ static inline void
stack_clear(mrb_value *from, size_t count)
{
#ifndef MRB_NAN_BOXING
const mrb_value mrb_value_zero = { 0 };
const mrb_value mrb_value_zero = { { 0 } };
while (count-- > 0) {
*from++ = mrb_value_zero;