From 86c4cc3003af398fdaa81a25e7e4f3644a8c2e5a Mon Sep 17 00:00:00 2001 From: gdd Date: Thu, 7 Jun 2012 11:26:44 +0000 Subject: [PATCH] Fix for compilation with gcc 4.7 --- src/SMDS/SMDS_Mesh.cxx | 2 +- src/SMESH/SMESH_MeshEditor.cxx | 2 -- src/SMESHUtils/SMESH_File.cxx | 1 + 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/SMDS/SMDS_Mesh.cxx b/src/SMDS/SMDS_Mesh.cxx index fbacb46a2..da41acc82 100644 --- a/src/SMDS/SMDS_Mesh.cxx +++ b/src/SMDS/SMDS_Mesh.cxx @@ -2828,7 +2828,7 @@ struct MYNode_Map_Iterator: public FATHER template class IdSortedIterator : public SMDS_Iterator { - const SMDS_MeshElementIDFactory& myIDFact; + SMDS_MeshElementIDFactory& myIDFact; int myID, myMaxID, myNbFound, myTotalNb; SMDSAbs_ElementType myType; ELEM myElem; diff --git a/src/SMESH/SMESH_MeshEditor.cxx b/src/SMESH/SMESH_MeshEditor.cxx index e3fbc6602..3b1cb08e6 100644 --- a/src/SMESH/SMESH_MeshEditor.cxx +++ b/src/SMESH/SMESH_MeshEditor.cxx @@ -4865,7 +4865,6 @@ SMESH_MeshEditor::ExtrusionAlongTrack (TIDSortedElemSet & theElements, const SMDS_MeshElement* currentElem = NULL; int totalNbEdges = theTrack->NbEdges(); SMDS_ElemIteratorPtr nIt; - bool isClosed = false; //check start node if( !theTrack->GetMeshDS()->Contains(theN1) ) { @@ -4897,7 +4896,6 @@ SMESH_MeshEditor::ExtrusionAlongTrack (TIDSortedElemSet & theElements, //case of the closed mesh if(currentNode == theN1) { nbEdges++; - isClosed = true; break; } diff --git a/src/SMESHUtils/SMESH_File.cxx b/src/SMESHUtils/SMESH_File.cxx index b0341ba5c..8a69d1cc0 100644 --- a/src/SMESHUtils/SMESH_File.cxx +++ b/src/SMESHUtils/SMESH_File.cxx @@ -36,6 +36,7 @@ #ifdef WIN32 #include #else +#include #include #endif -- 2.39.2