Merge pull request #3901 from sfc-gh-anoyes/anoyes/fix-clang-11-warning

Fix clang11 warning
This commit is contained in:
Jingyu Zhou 2020-10-13 13:00:00 -07:00 committed by GitHub
commit 1de38d3970
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -625,7 +625,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);
}
@ -640,7 +640,7 @@ struct TraverseMessageTypes : Context {
private:
template <class T, class... Ts>
void union_helper(pack<T, Ts...>) {
T t;
T t{};
(*this)(t);
union_helper(pack<Ts...>{});
}