Skip to content

Commit

Permalink
Suppress some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
lochel committed Oct 28, 2015
1 parent 7c39010 commit fe7b58c
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions Compiler/BackEnd/UnitCheck.mo
Expand Up @@ -467,11 +467,11 @@ algorithm
then (HtCr2U, HtS2U, HtU2S, expList);

case (BackendDAE.ALGORITHM(), _, _, _) equation
Error.addCompilerWarning("ALGORITHM, these types of equations are not yet supported\n");
//Error.addCompilerWarning("ALGORITHM, these types of equations are not yet supported\n");
then (inHtCr2U, inHtS2U, inHtU2S, {});

case (BackendDAE.WHEN_EQUATION(), _, _, _) equation
Error.addCompilerWarning("WHEN_EQUATION, these types of equations are not yet supported\n");
//Error.addCompilerWarning("WHEN_EQUATION, these types of equations are not yet supported\n");
then (inHtCr2U, inHtS2U, inHtU2S, {});

case (BackendDAE.COMPLEX_EQUATION(left=lhs, right=rhs), HtCr2U, HtS2U, HtU2S) equation
Expand All @@ -483,7 +483,7 @@ algorithm
then (HtCr2U, HtS2U, HtU2S, expList);

case (BackendDAE.IF_EQUATION(), _, _, _) equation
Error.addCompilerWarning("IF_EQUATION, these types of equations are not yet supported\n");
//Error.addCompilerWarning("IF_EQUATION, these types of equations are not yet supported\n");
then (inHtCr2U, inHtS2U, inHtU2S, {});

else equation
Expand Down Expand Up @@ -1005,9 +1005,11 @@ algorithm
case (DAE.CREF(), (HtCr2U, HtS2U, HtU2S), _)
then (Unit.MASTER({}), (HtCr2U, HtS2U, HtU2S), {});

else equation
Error.addInternalError("./Compiler/BackEnd/UnitCheck.mo: function insertUnitinEquation failed for " + ExpressionDump.printExpStr(inEq), sourceInfo());
then fail();
// all unhandled expressions, e.g. DAE.CAST, DAE.TUPLE, ...
else
//Error.addInternalError("./Compiler/BackEnd/UnitCheck.mo: function insertUnitinEquation failed for " + ExpressionDump.printExpStr(inEq), sourceInfo());
//then fail();
then (Unit.MASTER({}), inTpl, {});
end matchcontinue;
end insertUnitinEquation;

Expand Down

0 comments on commit fe7b58c

Please sign in to comment.