From a4b9fdd82f5905673e74a9deea2fbe7488d42fb1 Mon Sep 17 00:00:00 2001 From: Jean-Paul Chaput Date: Mon, 17 May 2010 14:40:41 +0000 Subject: [PATCH] * All tools: - Change: Correction to suppress all g++ warnings. Except thoses comming from bad Python system includes... --- knik/src/Graph.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/knik/src/Graph.cpp b/knik/src/Graph.cpp index 5f95d7bf..79b0adb1 100644 --- a/knik/src/Graph.cpp +++ b/knik/src/Graph.cpp @@ -648,8 +648,12 @@ void Graph::UpdateConnexComp ( VertexList reachedVertexes, Vertex* firstVertex ) //cerr << " gonna erase : " << toErase << endl; // on veut updater toute la composante connexe représenter par le currentVertex +#ifndef NDEBUG unsigned deleteVertex = _vertexes_to_route.erase ( toErase ); assert ( deleteVertex == 1 ); +#else + _vertexes_to_route.erase ( toErase ); +#endif // the connexe component corresponding to the vertex must be initialize with the firstConnexID initConnexComp ( currentVertex, firstConnexID ); @@ -806,9 +810,11 @@ void Graph::popMaxFromSTuplePQ() { if ( _stuplePriorityQueue.begin() != STuple::_stuplePQEnd ) { STuple* stuple = *(_stuplePriorityQueue.begin()); +#ifndef NDEBUG STuple::CostProperty* costProperty = stuple->getCostProperty(); assert ( costProperty ); assert ( (*costProperty->getPQIter()) == stuple ); +#endif stuple->destroy(); _stuplePriorityQueue.erase ( _stuplePriorityQueue.begin()); }