Skip to content

Commit

Permalink
- fix warning
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@18985 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
lochel committed Feb 5, 2014
1 parent 3359575 commit 01548be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Compiler/BackEnd/Initialization.mo
Expand Up @@ -1731,7 +1731,7 @@ algorithm
s = ComponentReference.printComponentRefStr(cr);
str = ExpressionDump.printExpStr(bindExp);
info = DAEUtil.getElementSourceFileInfo(BackendVariable.getVarSource(var));
Error.addSourceMessage(Error.UNFIXED_PARAMETER_WITH_BINDING, {s, str}, info);
Error.addSourceMessage(Error.UNFIXED_PARAMETER_WITH_BINDING, {s, s, str}, info);

eqn = BackendDAE.EQUATION(DAE.CREF(cr, ty), bindExp, DAE.emptyElementSource, false);
eqns = BackendEquation.equationAdd(eqn, eqns);
Expand Down
2 changes: 1 addition & 1 deletion Compiler/Util/Error.mo
Expand Up @@ -620,7 +620,7 @@ public constant Message OPERATOR_FUNCTION_EXPECTED = MESSAGE(229, TRANSLATION(),
public constant Message STRUCTURAL_SINGULAR_INITIAL_SYSTEM = MESSAGE(230, SYMBOLIC(), ERROR(),
Util.gettext("Initialization problem is structurally singular, error found sorting equations \n %s for variables \n %s"));
public constant Message UNFIXED_PARAMETER_WITH_BINDING = MESSAGE(231, SYMBOLIC(), WARNING(),
Util.gettext("The parameter %s has fixed = false and a binding equation p = %s, which is probably redundant."));
Util.gettext("The parameter %s has fixed = false and a binding equation %s = %s, which is probably redundant."));

public constant Message UNBOUND_PARAMETER_WITH_START_VALUE_WARNING = MESSAGE(499, TRANSLATION(), WARNING(),
Util.gettext("Parameter %s has no value, and is fixed during initialization (fixed=true), using available start value (start=%s) as default value."));
Expand Down

0 comments on commit 01548be

Please sign in to comment.