Skip to content

Commit

Permalink
avoid maybe uninitialized warnings from gcc13
Browse files Browse the repository at this point in the history
  • Loading branch information
svigerske committed May 29, 2023
1 parent 3557f60 commit 9e947a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Model/NonlinearExpressions.h
Original file line number Diff line number Diff line change
Expand Up @@ -1543,8 +1543,8 @@ class ExpressionDivide : public ExpressionBinary
&& secondChild->getType() == E_NonlinearExpressionTypes::Sum && secondChild->getNumberOfChildren() == 2)
{
auto sum = std::dynamic_pointer_cast<ExpressionGeneral>(secondChild);
double constant;
double coefficient;
double constant = 0.0;
double coefficient = 0.0;
bool isValid = false;

ExpressionVariablePtr nominatorVariable = std::dynamic_pointer_cast<ExpressionVariable>(firstChild);
Expand Down

0 comments on commit 9e947a3

Please sign in to comment.