Fix -Wmaybe-uninitialized warnings

Fix some potentially uninitialized uses that are reported by GCC 13
with `-O3`.
This commit is contained in:
Sven van Haastregt 2023-06-06 15:07:43 +01:00 committed by arcady-lunarg
parent a6662c53ce
commit 4d95e22826
2 changed files with 4 additions and 3 deletions

View file

@ -382,7 +382,7 @@ TVariable* TVariable::clone() const
TFunction::TFunction(const TFunction& copyOf) : TSymbol(copyOf)
{
for (unsigned int i = 0; i < copyOf.parameters.size(); ++i) {
TParameter param;
TParameter param{};
parameters.push_back(param);
(void)parameters.back().copyParam(copyOf.parameters[i]);
}