From a43bac58427822e69c75b9e49ed95f32e2bb91c3 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

---
 ModFile.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ModFile.cc b/ModFile.cc
index e21cf81e..847fc7e3 100644
--- a/ModFile.cc
+++ b/ModFile.cc
@@ -290,7 +290,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