From 9a5ad173497cc0af79a832e463f1ecb673be4012 Mon Sep 17 00:00:00 2001 From: Houtan Bastani <houtan@dynare.org> Date: Wed, 11 Sep 2019 16:24:47 +0200 Subject: [PATCH] suppress sign comparison warnings when compiling with g++-9 --- src/DynamicModel.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DynamicModel.cc b/src/DynamicModel.cc index 6ac66420..902bf482 100644 --- a/src/DynamicModel.cc +++ b/src/DynamicModel.cc @@ -2955,14 +2955,14 @@ DynamicModel::writeOutput(ostream &output, const string &basename, bool block_de outstruct = "oo_."; } - if (max_endo_lag_by_var.size() != symbol_table.orig_endo_nbr()) + if (max_endo_lag_by_var.size() != static_cast<size_t>(symbol_table.orig_endo_nbr())) { cerr << "ERROR: the number of endogenous variables found in the model block" << " is not equal to the number declared" << endl; exit(EXIT_FAILURE); } - if (max_exo_lag_by_var.size() != symbol_table.exo_nbr()) + if (max_exo_lag_by_var.size() != static_cast<size_t>(symbol_table.exo_nbr())) { cerr << "ERROR: the number of exogenous variables found in the model block" << " is not equal to the number declared" << endl; -- GitLab