From 95f4e55d3cd2af50738798fa5bf3f9ab699e63a8 Mon Sep 17 00:00:00 2001 From: Franziska Schloesser Date: Fri, 17 Jun 2022 15:24:11 +0200 Subject: [PATCH] fix some compiler warnings --- include/bliss/orbit.hh | 4 ++-- src/abstractgraph.cc | 2 +- src/digraph.cc | 8 ++++---- src/graph.cc | 8 ++++---- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/include/bliss/orbit.hh b/include/bliss/orbit.hh index 829cf1e..ead3142 100644 --- a/include/bliss/orbit.hh +++ b/include/bliss/orbit.hh @@ -3,9 +3,9 @@ /* Copyright (c) 2003-2021 Tommi Junttila Released under the GNU Lesser General Public License version 3. - + This file is part of bliss. - + bliss is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, version 3 of the License. diff --git a/src/abstractgraph.cc b/src/abstractgraph.cc index 566d297..5c680a7 100644 --- a/src/abstractgraph.cc +++ b/src/abstractgraph.cc @@ -944,7 +944,7 @@ AbstractGraph::search(const bool canonical, else if(current_node.needs_long_prune) { current_node.needs_long_prune = false; - unsigned int begin = (current_node.long_prune_begin>long_prune_begin)?current_node.long_prune_begin:long_prune_begin; + begin = (current_node.long_prune_begin>long_prune_begin)?current_node.long_prune_begin:long_prune_begin; for(unsigned int i = begin; i < long_prune_end; i++) { const std::vector& fixed = long_prune_get_fixed(i); diff --git a/src/digraph.cc b/src/digraph.cc index 39278ca..128967e 100644 --- a/src/digraph.cc +++ b/src/digraph.cc @@ -877,10 +877,10 @@ Digraph::split_neighbourhood_of_cell(Partition::Cell* const cell) { for(unsigned int i = p.splitting_queue.size(); i > 0; i--) { - Partition::Cell* const cell = p.splitting_queue.pop_front(); - rest.update(cell->first); - rest.update(cell->length); - p.splitting_queue.push_back(cell); + Partition::Cell* const cell2 = p.splitting_queue.pop_front(); + rest.update(cell2->first); + rest.update(cell2->length); + p.splitting_queue.push_back(cell2); } rest.update(failure_recording_fp_deviation); failure_recording_fp_deviation = rest.get_value(); diff --git a/src/graph.cc b/src/graph.cc index 0a53472..7baf1f4 100644 --- a/src/graph.cc +++ b/src/graph.cc @@ -805,10 +805,10 @@ Graph::split_neighbourhood_of_cell(Partition::Cell* const cell) { for(unsigned int i = p.splitting_queue.size(); i > 0; i--) { - Partition::Cell* const cell = p.splitting_queue.pop_front(); - rest.update(cell->first); - rest.update(cell->length); - p.splitting_queue.push_back(cell); + Partition::Cell* const cell2 = p.splitting_queue.pop_front(); + rest.update(cell2->first); + rest.update(cell2->length); + p.splitting_queue.push_back(cell2); } rest.update(failure_recording_fp_deviation); failure_recording_fp_deviation = rest.get_value();