Remove various compiler warnings

issue#70
Sébastien Villemot 2012-06-08 19:00:57 +02:00
parent 67a1737f00
commit 4541e17e83
2 changed files with 2 additions and 5 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2009-2011 Dynare Team
* Copyright (C) 2009-2012 Dynare Team
*
* This file is part of Dynare.
*
@ -226,7 +226,6 @@ namespace MFS
bool not_a_loop;
int i;
AdjacencyList_t::vertex_iterator it, it1, ita, it_end;
property_map<AdjacencyList_t, vertex_index_t>::type v_index = get(vertex_index, G);
for (tie(it, it_end) = vertices(G), i = 0; it != it_end; ++it, i++)
{
int in_degree_n = in_degree(*it, G);

View File

@ -1515,12 +1515,10 @@ StaticModel::writeOutput(ostream &output, bool block) const
{
BlockSimulationType simulation_type = getBlockSimulationType(b);
unsigned int block_size = getBlockSize(b);
unsigned int block_mfs = getBlockMfs(b);
unsigned int block_recursive = block_size - block_mfs;
ostringstream tmp_s, tmp_s_eq;
tmp_s.str("");
tmp_s_eq.str("");
for (int i = 0; i < block_size; i++)
for (unsigned int i = 0; i < block_size; i++)
{
tmp_s << " " << getBlockVariableID(b, i)+1;
tmp_s_eq << " " << getBlockEquationID(b, i)+1;