Skip to content

Commit

Permalink
Removing warning about fixed parameter without start-value or binding…
Browse files Browse the repository at this point in the history
… equation since the warning is often wrong. The check should probably be made in the backend if it is needed.

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@15988 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed May 6, 2013
1 parent d0211c1 commit 93b58b3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Compiler/FrontEnd/Static.mo
Expand Up @@ -10794,6 +10794,7 @@ algorithm
// parameters without value with fixed=true or no fixed attribute set produce warning (as long as not for iterator)
case (cache,env,cr,attr as DAE.ATTR(variability = SCode.PARAM()),_,_,tt,DAE.UNBOUND(),doVect,Lookup.SPLICEDEXPDATA(sexp,idTp),pre,_,_)
equation
/* Disable warning since this seems to be the wrong place to check it or the message is at least wrong
genWarning = Types.isFixedWithNoBinding(tt, SCode.PARAM());
s = ComponentReference.printComponentRefStr(cr);
genWarning = not (boolNot(genWarning) or
Expand All @@ -10803,6 +10804,7 @@ algorithm
// Don't generate warning if variable is for iterator, since it doesn't have a value (it's iterated over separately)
s = pre_str +& s;
Debug.bcall3(genWarning,Error.addSourceMessage,Error.UNBOUND_PARAMETER_WARNING,{s}, info);
*/
expTy = Types.simplifyType(tt);
expIdTy = Types.simplifyType(idTp);
cr_1 = fillCrefSubscripts(cr, tt);
Expand Down

0 comments on commit 93b58b3

Please sign in to comment.