Skip to content
This repository has been archived by the owner on May 18, 2019. It is now read-only.

Commit

Permalink
fix uninitialized variables
Browse files Browse the repository at this point in the history
  • Loading branch information
hkiel authored and OpenModelica-Hudson committed Feb 27, 2017
1 parent 7172627 commit 57b34d5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Compiler/BackEnd/BackendEquation.mo
Original file line number Diff line number Diff line change
Expand Up @@ -1021,7 +1021,7 @@ algorithm
list<BackendDAE.WhenOperator> rest;
T extArg;
DAE.ElementSource source;
Boolean b;
Boolean b = false;

case {} then (inCont,inTypeA);
case (BackendDAE.ASSIGN(left = e1, right = e2)::rest)
Expand Down
3 changes: 3 additions & 0 deletions Compiler/BackEnd/BackendInline.mo
Original file line number Diff line number Diff line change
Expand Up @@ -678,6 +678,9 @@ algorithm
(outEqs, oInlined, shared) := inlineEquationOptArrayAppend(inEquationArray, fns, shared);
outEquationArray := BackendDAE.EQUATION_ARRAY(size,i1,eqarr);
else
outEquationArray := inEquationArray;
oInlined := false;
outEqs := BackendDAEUtil.createEqSystem( BackendVariable.listVar({}), BackendEquation.listEquation({}));
if Flags.isSet(Flags.FAILTRACE) then
Debug.trace("BackendInline.inlineEquationArrayAppend failed\n");
end if;
Expand Down
6 changes: 3 additions & 3 deletions Compiler/FrontEnd/ComponentReference.mo
Original file line number Diff line number Diff line change
Expand Up @@ -849,10 +849,10 @@ protected function crefLexicalCompareSubsAtEnd2
Helper function for crefLexicalCompareubsAtEnd
compares subs. However only if the crefs with out subs are equal.
(i.e. identsCompared is 0)
otheriwse just returns"
otherwise just returns"
input list<Integer> inSubs1;
input list<Integer> inSubs2;
output Integer res;
output Integer res = 0;
protected
list<Integer> rest=inSubs2;
algorithm
Expand Down Expand Up @@ -1840,7 +1840,7 @@ end crefDims;

public function crefSubs "
function: crefSubs
Return the all subscripts of a ComponentRef"
Return all subscripts of a ComponentRef"
input DAE.ComponentRef inComponentRef;
output list<DAE.Subscript> outSubscriptLst;
algorithm
Expand Down

0 comments on commit 57b34d5

Please sign in to comment.