Skip to content

Commit 6067928

Browse files
author
Jens Frenkel
committed
- remove local var declaration
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@12011 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent 6144e79 commit 6067928

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Compiler/BackEnd/BackendQSS.mo

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,7 @@ algorithm
587587
DAE.Exp exp,e1;
588588
DAE.Exp scalar "scalar" ;
589589
String s;
590+
Integer p;
590591
case (_,{h},_,_,_,_,true,_,_)
591592
equation
592593
BackendDAE.EQUATION(exp=exp as DAE.CREF(ty = DAE.T_BOOL(_,_)),scalar=scalar) = BackendDAEUtil.equationNth(eqs,h-1);
@@ -607,7 +608,6 @@ algorithm
607608
then s;
608609

609610
case (_,{h},_,_,_,_,true,zc_exps,offset)
610-
local Integer p;
611611
equation
612612
BackendDAE.EQUATION(exp=exp,scalar=scalar) = BackendDAEUtil.equationNth(eqs,h-1);
613613
s = stringAppend("/* We are adding a new discrete variable for ","");
@@ -640,7 +640,6 @@ algorithm
640640
((e1,_))=Expression.replaceExp(scalar,condition,DAE.RCONST(0.0));
641641
then s;
642642
case (_,{h},_,_,_,_,false,zc_exps,offset)
643-
local Integer p;
644643
equation
645644
BackendDAE.EQUATION(exp=exp,scalar=scalar) = BackendDAEUtil.equationNth(eqs,h-1);
646645
s = stringAppend("/* We are adding a new discrete variable for ","");

0 commit comments

Comments
 (0)