From c2927a9d89a48f5e59f761089e87ac4fe34f7d57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Per=20=C3=96stlund?= Date: Tue, 10 Dec 2019 14:28:03 +0100 Subject: [PATCH] [NF] Disable warning when checking model. - Disable the warning for an unbound parameter with an Evaluate = true annotation when checking a model. --- OMCompiler/Compiler/NFFrontEnd/NFInst.mo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OMCompiler/Compiler/NFFrontEnd/NFInst.mo b/OMCompiler/Compiler/NFFrontEnd/NFInst.mo index b3b5a0569cf..c03361ca91e 100644 --- a/OMCompiler/Compiler/NFFrontEnd/NFInst.mo +++ b/OMCompiler/Compiler/NFFrontEnd/NFInst.mo @@ -3375,7 +3375,7 @@ algorithm isStructural := false; elseif Binding.isUnbound(compBinding) then // Except parameters with no bindings. - if not evalAllParams then + if not evalAllParams and not Flags.getConfigBool(Flags.CHECK_MODEL) then // Print a warning if a parameter has an Evaluate=true annotation but no binding. Error.addSourceMessage(Error.UNBOUND_PARAMETER_EVALUATE_TRUE, {InstNode.name(compNode)}, InstNode.info(compNode));