From bde9cfa2115647b93ae1d9e36767487744234807 Mon Sep 17 00:00:00 2001
From: Houtan Bastani <houtan@dynare.org>
Date: Mon, 18 Sep 2017 11:42:36 +0200
Subject: [PATCH] preprocessor: remove unnecessary global declaration. closes
 #1518

---
 ComputingTasks.cc | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/ComputingTasks.cc b/ComputingTasks.cc
index 9ff522f8..8e1945d6 100644
--- a/ComputingTasks.cc
+++ b/ComputingTasks.cc
@@ -1028,8 +1028,7 @@ EstimatedParamsStatement::checkPass(ModFileStructure &mod_file_struct, WarningCo
 void
 EstimatedParamsStatement::writeOutput(ostream &output, const string &basename, bool minimal_workspace) const
 {
-  output << "global estim_params_" << endl
-         << "estim_params_.var_exo = [];" << endl
+  output << "estim_params_.var_exo = [];" << endl
          << "estim_params_.var_endo = [];" << endl
          << "estim_params_.corrx = [];" << endl
          << "estim_params_.corrn = [];" << endl
-- 
GitLab