From: imn Date: Fri, 29 May 2015 13:22:21 +0000 (+0300) Subject: 0022875: fixed compilation warnings X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1609db36cc20cb4ed4ce2e12e084fb80782f9a28;p=tools%2Fmedcoupling.git 0022875: fixed compilation warnings --- diff --git a/src/MEDCoupling/MEDCouplingUMesh.cxx b/src/MEDCoupling/MEDCouplingUMesh.cxx index e9c46e8a0..557b55b51 100644 --- a/src/MEDCoupling/MEDCouplingUMesh.cxx +++ b/src/MEDCoupling/MEDCouplingUMesh.cxx @@ -8669,7 +8669,6 @@ MEDCouplingSkyLineArray *MEDCouplingUMesh::generateGraph() const int meshDim = this->getMeshDimension(); ParaMEDMEM::DataArrayInt* indexr=ParaMEDMEM::DataArrayInt::New(); ParaMEDMEM::DataArrayInt* revConn=ParaMEDMEM::DataArrayInt::New(); - int nbNodes=getNumberOfNodes(); this->getReverseNodalConnectivity(revConn,indexr); const int* indexr_ptr=indexr->getConstPointer(); const int* revConn_ptr=revConn->getConstPointer(); diff --git a/src/MEDPartitioner/MEDPARTITIONER_MeshCollection.cxx b/src/MEDPartitioner/MEDPARTITIONER_MeshCollection.cxx index 7643a53f0..310853359 100644 --- a/src/MEDPartitioner/MEDPARTITIONER_MeshCollection.cxx +++ b/src/MEDPartitioner/MEDPARTITIONER_MeshCollection.cxx @@ -174,7 +174,7 @@ MEDPARTITIONER::MeshCollection::MeshCollection(MeshCollection& initialCollection castAllFields(initialCollection,"cellFieldDouble"); if (_i_non_empty_mesh<0) { - for (int i=0; i<_mesh.size(); i++) + for (unsigned int i=0; i<_mesh.size(); i++) { if (_mesh[i]) { @@ -1133,8 +1133,8 @@ void MEDPARTITIONER::MeshCollection::buildConnectZones( const NodeMapping& nodeM MEDPARTITIONER::ConnectZone* cz = czVec[i]; if ( !cz || cz->getEntityCorrespNumber( 0,0 ) == 0 || - cz->getLocalDomainNumber () > _mesh.size() || - cz->getDistantDomainNumber() > _mesh.size() ) + (unsigned int)cz->getLocalDomainNumber () > _mesh.size() || + (unsigned int)cz->getDistantDomainNumber() > _mesh.size() ) continue; ParaMEDMEM::MEDCouplingUMesh* mesh1 = _mesh[ cz->getLocalDomainNumber () ]; ParaMEDMEM::MEDCouplingUMesh* mesh2 = _mesh[ cz->getDistantDomainNumber() ]; @@ -1463,7 +1463,7 @@ void MEDPARTITIONER::MeshCollection::createJointGroup( const std::vector< int >& // remove faces from the familyID-the family if ( familyID != 0 && famIDs ) - for ( size_t i = 0; i < totalNbFaces; ++i ) + for ( int i = 0; i < totalNbFaces; ++i ) if ( famIDs[i] == familyID ) famIDs[i] = 0; @@ -1822,7 +1822,7 @@ int MEDPARTITIONER::MeshCollection::getMeshDimension() const int MEDPARTITIONER::MeshCollection::getNbOfLocalMeshes() const { int nb=0; - for (int i=0; i<_mesh.size(); i++) + for (unsigned int i=0; i<_mesh.size(); i++) { if (_mesh[i]) nb++; } @@ -1832,7 +1832,7 @@ int MEDPARTITIONER::MeshCollection::getNbOfLocalMeshes() const int MEDPARTITIONER::MeshCollection::getNbOfLocalCells() const { int nb=0; - for (int i=0; i<_mesh.size(); i++) + for (unsigned int i=0; i<_mesh.size(); i++) { if (_mesh[i]) nb=nb+_mesh[i]->getNumberOfCells(); } @@ -1842,7 +1842,7 @@ int MEDPARTITIONER::MeshCollection::getNbOfLocalCells() const int MEDPARTITIONER::MeshCollection::getNbOfLocalFaces() const { int nb=0; - for (int i=0; i<_face_mesh.size(); i++) + for (unsigned int i=0; i<_face_mesh.size(); i++) { if (_face_mesh[i]) nb=nb+_face_mesh[i]->getNumberOfCells(); } diff --git a/src/MEDPartitioner/MEDPARTITIONER_MeshCollectionDriver.cxx b/src/MEDPartitioner/MEDPARTITIONER_MeshCollectionDriver.cxx index 43343c89c..da34f9b3d 100644 --- a/src/MEDPartitioner/MEDPARTITIONER_MeshCollectionDriver.cxx +++ b/src/MEDPartitioner/MEDPARTITIONER_MeshCollectionDriver.cxx @@ -427,7 +427,7 @@ ParaMEDMEM::MEDFileData* MeshCollectionDriver::getMEDFileData() meshes = ParaMEDMEM::MEDFileMeshes::New(); fields = ParaMEDMEM::MEDFileFields::New(); - for (int i=0; i<(_collection->getMesh()).size(); i++) + for (unsigned int i=0; i<(_collection->getMesh()).size(); i++) { ParaMEDMEM::MEDFileMesh* mfm = getMesh( i ); meshes->pushMesh(mfm);