From bbb2b067bfdc28273c7a086d3b935c9951e9acea Mon Sep 17 00:00:00 2001
From: Houtan Bastani <houtan@dynare.org>
Date: Wed, 27 Jun 2018 13:45:51 +0200
Subject: [PATCH] prevent compilation warning

---
 src/ExprNode.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ExprNode.cc b/src/ExprNode.cc
index 4c21a481..4e98111f 100644
--- a/src/ExprNode.cc
+++ b/src/ExprNode.cc
@@ -3201,7 +3201,7 @@ UnaryOpNode::substituteUnaryOpNodes(DataTree &static_datatree, diff_table_t &nod
   if (it == nodes.end())
     return buildSimilarUnaryOpNode(argsubst, datatree);
 
-  int base_aux_lag;
+  int base_aux_lag = 0;
   VariableNode *aux_var = nullptr;
   for (auto rit = it->second.rbegin(); rit != it->second.rend(); rit++)
     if (rit == it->second.rbegin())
-- 
GitLab