Skip to content

Commit

Permalink
fix static analysis: avoid dead assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
hkiel authored and OpenModelica-Hudson committed Jun 14, 2017
1 parent 1b08e2b commit 9276843
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Compiler/FrontEnd/Algorithm.mo
Expand Up @@ -385,7 +385,7 @@ algorithm
// variables is fine
case DAE.PROP(constFlag = DAE.C_VAR()) then ();
// constant
case DAE.PROP(ty, DAE.C_CONST())
case DAE.PROP(_, DAE.C_CONST())
equation
l = stringAppendList({"(", stringDelimitList(List.map(lhs, ExpressionDump.printExpStr), ", "), ")"});
r = ExpressionDump.printExpStr(rhs);
Expand All @@ -406,7 +406,7 @@ algorithm
then
();
// tuples? TODO! FIXME! can we get tuple here? maybe only for MetaModelica
case DAE.PROP_TUPLE(ty, _) then ();
case DAE.PROP_TUPLE(_, _) then ();
end matchcontinue;
i := i + 1;
end for;
Expand Down

0 comments on commit 9276843

Please sign in to comment.