From c8221cac229e8538005a21a706c4e342d082c960 Mon Sep 17 00:00:00 2001 From: Houtan Bastani <houtan@dynare.org> Date: Fri, 6 Mar 2015 09:49:11 +0100 Subject: [PATCH] preprocessor: bug fix; warning should be issued if there is at least one unused exo not more than one (cherry picked from commit 9ab6be8995b5b9b0746dfc01a961e9dff385c5f5) --- preprocessor/ModFile.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/preprocessor/ModFile.cc b/preprocessor/ModFile.cc index bba448ba61..2f3ee4463c 100644 --- a/preprocessor/ModFile.cc +++ b/preprocessor/ModFile.cc @@ -289,7 +289,7 @@ ModFile::checkPass() // Check if some exogenous is not used in the model block set<int> unusedExo = dynamic_model.findUnusedExogenous(); - if (unusedExo.size() > 1) + if (unusedExo.size() > 0) { warnings << "WARNING: some exogenous ("; for (set<int>::const_iterator it = unusedExo.begin(); -- GitLab