Merge pull request #3968 from sfc-gh-anoyes/anoyes/cherry-pick

Fix clang11 warning (cherrypick #3901)
This commit is contained in:
Markus Pilman 2020-10-26 14:51:23 -06:00 committed by GitHub
commit 585fdadc8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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 <class T, class... Ts>
void union_helper(pack<T, Ts...>) {
T t;
T t{};
(*this)(t);
union_helper(pack<Ts...>{});
}