Fix -Wmaybe-uninitialized warnings
Fix some potentially uninitialized uses that are reported by GCC 13 with `-O3`.
This commit is contained in:
parent
a6662c53ce
commit
4d95e22826
2 changed files with 4 additions and 3 deletions
|
|
@ -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]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue