]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Fix for compilation with gcc 4.7
authorgdd <gdd>
Thu, 7 Jun 2012 11:26:44 +0000 (11:26 +0000)
committergdd <gdd>
Thu, 7 Jun 2012 11:26:44 +0000 (11:26 +0000)
src/SMDS/SMDS_Mesh.cxx
src/SMESH/SMESH_MeshEditor.cxx
src/SMESHUtils/SMESH_File.cxx

index fbacb46a2f53df3e96d0f5f4d3654777ca9e16a5..da41acc8200ba01e94a232fbf40d557b0367a3a9 100644 (file)
@@ -2828,7 +2828,7 @@ struct MYNode_Map_Iterator: public FATHER
   template <typename ELEM=const SMDS_MeshElement*>
   class IdSortedIterator : public SMDS_Iterator<ELEM>
   {
-    const SMDS_MeshElementIDFactory& myIDFact;
+    SMDS_MeshElementIDFactory&       myIDFact;
     int                              myID, myMaxID, myNbFound, myTotalNb;
     SMDSAbs_ElementType              myType;
     ELEM                             myElem;
index e3fbc6602c1db1b06f17eabac1e6fbc201f43374..3b1cb08e61f01d1e476b5434e73359cbc53165bd 100644 (file)
@@ -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;
         }
 
index b0341ba5c5fe997c31c31c8f1fc909a39284b8c8..8a69d1cc0566a5d15dfbbf0bdea1217bccdb6a03 100644 (file)
@@ -36,6 +36,7 @@
 #ifdef WIN32
 #include <io.h>
 #else
+#include <unistd.h>
 #include <sys/mman.h>
 #endif