Skip to content

Commit

Permalink
- fix duplicate warnings
Browse files Browse the repository at this point in the history
  - there are still some duplicate warnings from the front end (Adrian is working on that)


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@19070 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
lochel committed Feb 12, 2014
1 parent e80d154 commit 78f21e8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Compiler/BackEnd/Initialization.mo
Expand Up @@ -1714,10 +1714,11 @@ algorithm
var = BackendVariable.setBindExp(var, SOME(startExp));
var = BackendVariable.setVarFixed(var, true);

s = ComponentReference.printComponentRefStr(cr);
str = ExpressionDump.printExpStr(startExp);
info = DAEUtil.getElementSourceFileInfo(BackendVariable.getVarSource(var));
Error.addSourceMessage(Error.UNBOUND_PARAMETER_WITH_START_VALUE_WARNING, {s, str}, info);
// this is already covered in the front end
// s = ComponentReference.printComponentRefStr(cr);
// str = ExpressionDump.printExpStr(startExp);
// info = DAEUtil.getElementSourceFileInfo(BackendVariable.getVarSource(var));
// Error.addSourceMessage(Error.UNBOUND_PARAMETER_WITH_START_VALUE_WARNING, {s, str}, info);

vars = BackendVariable.addVar(var, vars);
then ((var, (vars, fixvars, eqns, hs)));
Expand Down

0 comments on commit 78f21e8

Please sign in to comment.