diff --git a/flow/flat_buffers.h b/flow/flat_buffers.h index b89ae6f69f..183d697e03 100644 --- a/flow/flat_buffers.h +++ b/flow/flat_buffers.h @@ -597,7 +597,7 @@ struct TraverseMessageTypes : Context { // we don't need to check for recursion here because the next call // to operator() will do that and we don't generate a vtable for the // vector-like type itself - T t; + T t{}; (*this)(t); } @@ -612,7 +612,7 @@ struct TraverseMessageTypes : Context { private: template void union_helper(pack) { - T t; + T t{}; (*this)(t); union_helper(pack{}); }