Salome HOME
#18963 Minimize compiler warnings
authorvsr <vsr@opencascade.com>
Mon, 26 Oct 2020 16:30:24 +0000 (19:30 +0300)
committervsr <vsr@opencascade.com>
Tue, 8 Dec 2020 15:58:41 +0000 (18:58 +0300)
src/GHS3DPRLPlugin/GHS3DPRLPlugin_GHS3DPRL.cxx
src/GHS3DPRLPlugin/GHS3DPRLPlugin_Hypothesis.cxx
src/GHS3DPRLPlugin/GHS3DPRLPlugin_Hypothesis_i.hxx
src/GHS3DPRLPlugin/GHS3DPRLPlugin_i.cxx
src/GHS3DPRLPlugin/MG_TetraHPC_API.cxx
src/tepal2med/ghs3dprl_mesh_wrap.cxx
src/tepal2med/ghs3dprl_msg_parser.cxx
src/tepal2med/tepal2med.cxx
src/tepal2med/tetrahpc2med.cxx

index 2705370cfcdcacc041c5a020f17d22428e7f61ea..3d4cdddf8bfc47d771a7a958e0ae2878797d7459 100644 (file)
@@ -57,7 +57,7 @@ static void removeFile( const TCollection_AsciiString& fileName )
   try {
     OSD_File( fileName ).Remove();
   }
-  catch ( Standard_ProgramError ) {
+  catch ( Standard_ProgramError& ) {
     MESSAGE("Can't remove file: " << fileName.ToCString() << " ; file does not exist or permission denied");
   }
 }
@@ -207,7 +207,7 @@ static void exportGMF(MG_TetraHPC_API*    theTetraInput,
 //=============================================================================
 // Here we are going to use the GHS3DPRL mesher for tetra-hpc (formerly tepal in v3 (2014))
 bool GHS3DPRLPlugin_GHS3DPRL::Compute(SMESH_Mesh&         theMesh,
-                                      const TopoDS_Shape& theShape)
+                                      const TopoDS_Shape& /*theShape*/)
 {
   SMESH_MesherHelper helper( theMesh );
   bool ok = Compute( theMesh, &helper );
@@ -217,7 +217,7 @@ bool GHS3DPRLPlugin_GHS3DPRL::Compute(SMESH_Mesh&         theMesh,
 //=============================================================================
 // Here we are going to use the GHS3DPRL mesher for tetra-hpc (formerly tepal in v3 (2014))
 bool GHS3DPRLPlugin_GHS3DPRL::Compute(SMESH_Mesh&         theMesh,
-                                      SMESH_MesherHelper* theHelper)
+                                      SMESH_MesherHelper* /*theHelper*/)
 {
   bool Ok=false;
   TCollection_AsciiString pluginerror("ghs3dprl: ");
index 4b1d6e9918f0ba2f21f5f467b4da0e3f04b0a320..08de6670ab44c5fcaed7935ec41b6d38a9645c22 100644 (file)
@@ -263,8 +263,8 @@ std::istream& operator >>(std::istream& load, GHS3DPRLPlugin_Hypothesis& hyp)
  * \retval bool - always false
  */
 //================================================================================
-bool GHS3DPRLPlugin_Hypothesis::SetParametersByMesh(const SMESH_Mesh*   theMesh,
-                                                    const TopoDS_Shape& theShape)
+bool GHS3DPRLPlugin_Hypothesis::SetParametersByMesh(const SMESH_Mesh*   /*theMesh*/,
+                                                    const TopoDS_Shape& /*theShape*/)
 {
   return false;
 }
index 1e951d6b66749a0bebb9f6b796a657fead4c9940..50d969b40d3c39d50903c3711253086bca2ed95c 100644 (file)
@@ -86,10 +86,10 @@ class GHS3DPRLPLUGIN_EXPORT GHS3DPRLPlugin_Hypothesis_i:
   CORBA::Boolean IsDimSupported( SMESH::Dimension type );
 
   // Methods for copying mesh definition to other geometry
-  virtual bool getObjectsDependOn( std::vector< std::string > & entryArray,
-                                   std::vector< int >         & subIDArray ) const { return false; }
-  virtual bool setObjectsDependOn( std::vector< std::string > & entryArray,
-                                   std::vector< int >         & subIDArray ) { return true; }
+  virtual bool getObjectsDependOn( std::vector< std::string > & /*entryArray*/,
+                                   std::vector< int >         & /*subIDArray*/ ) const { return false; }
+  virtual bool setObjectsDependOn( std::vector< std::string > & /*entryArray*/,
+                                   std::vector< int >         & /*subIDArray*/ ) { return true; }
 };
 
 #endif
index 1fd87fbab331e80c219ffad8f6475771a227a64a..86016283fee0de5bb5b99dcc193f0596838891fd 100644 (file)
@@ -61,7 +61,6 @@ extern "C"
     else if (strcmp(aHypName, "GHS3DPRL_Parameters") == 0 ||
              strcmp(aHypName, "MG-Tetra Parallel Parameters") == 0)
       aCreator = new GHS3DPRLPlugin_Creator_i<GHS3DPRLPlugin_Hypothesis_i>;
-    else ;
 
     return aCreator;
   }
index dda9c3e86bf3407f31d8a4742ba4dedb5238fdce..6aad3c65b7d309738ce379ea8d8d9e7f44dbc5fe 100644 (file)
@@ -341,7 +341,7 @@ struct MG_TetraHPC_API::LibData
     _nbRequiredTria = nb;
   }
 
-  void AddNode( double x, double y, double z, int domain )
+  void AddNode( double x, double y, double z, int /*domain*/ )
   {
     _xyz.push_back( x );
     _xyz.push_back( y );
@@ -353,13 +353,13 @@ struct MG_TetraHPC_API::LibData
     _nodeSize.push_back( size );
   }
   
-  void AddEdgeNodes( int node1, int node2, int domain )
+  void AddEdgeNodes( int node1, int node2, int /*domain*/ )
   {
     _edgeNodes.push_back( node1 );
     _edgeNodes.push_back( node2 );
   }
   
-  void AddTriaNodes( int node1, int node2, int node3, int domain )
+  void AddTriaNodes( int node1, int node2, int node3, int /*domain*/ )
   {
     _triaNodes.push_back( node1 );
     _triaNodes.push_back( node2 );
@@ -615,6 +615,14 @@ bool MG_TetraHPC_API::LibData::Compute( const std::string& outFile )
   return true;
 }
 
+#else // ifdef USE_MG_LIBS
+
+struct MG_TetraHPC_API::LibData // to avoid compiler warnings
+{
+  volatile bool& _cancelled_flag;
+  double& _progress;
+  LibData(volatile bool& cancelled_flag, double& progress): _cancelled_flag{cancelled_flag}, _progress{progress} {}
+};
 
 #endif // ifdef USE_MG_LIBS
 
@@ -628,9 +636,9 @@ bool MG_TetraHPC_API::LibData::Compute( const std::string& outFile )
 MG_TetraHPC_API::MG_TetraHPC_API(volatile bool& cancelled_flag, double& progress)
 {
   _useLib = false;
+  _libData = new LibData( cancelled_flag, progress );
 #ifdef USE_MG_LIBS
   _useLib = true;
-  _libData = new LibData( cancelled_flag, progress );
   _libData->Init();
   if ( getenv("MG_TetraHPC_USE_EXE"))
     _useLib = false;
@@ -743,6 +751,7 @@ bool MG_TetraHPC_API::Compute( const std::string& cmdLine )
 #endif
   }
 
+  (void)cmdLine; // todo: unused
   // Run library ONLY
 
   // int err = system( cmdLine.c_str() ); // run
@@ -830,7 +839,7 @@ void MG_TetraHPC_API::GmfGotoKwd( int iMesh, GmfKwdCod what )
  */
 //================================================================================
 
-void MG_TetraHPC_API::GmfGetLin( int iMesh, GmfKwdCod what, int* nbNodes, int* faceInd, int* ori, int* domain, int dummy )
+void MG_TetraHPC_API::GmfGetLin( int iMesh, GmfKwdCod what, int* nbNodes, int* faceInd, int* ori, int* domain, int /*dummy*/ )
 {
   if ( _useLib ) {
 #ifdef USE_MG_LIBS
index ef2aa54e297d76cfbca8875c0f9d8db85b6ef428..706d32ec01c703a3cc32d0e36f11759f50a973a8 100644 (file)
@@ -238,7 +238,7 @@ bool familles::get_number_of_new_family(int sign, med_int *ires, QString *tmp)
       //std::cout<<"no family found!!! - groups of "<<fam1<<" and "<<fam2<<std::endl;
       QString tmp;
       //fam1 positive for nodes negative faces & mailles
-      bool oktmp=get_number_of_new_family(fam1,&ires,&tmp);
+      /*bool oktmp=*/get_number_of_new_family(fam1,&ires,&tmp);
       fend::iterator it;
       for (it=gb.begin(); it!=gb.end(); ++it){
           this->add(tmp,(*it).first);
@@ -253,9 +253,9 @@ bool familles::get_number_of_new_family(int sign, med_int *ires, QString *tmp)
    {
       QString nom1,nom2;
       fagr::iterator it1,it2;
-      nom1=nom1.sprintf("%d",fam1);
+      nom1=nom1.sprintf("%d",(int)fam1);
       it1=fam.find(nom1);
-      nom2=nom2.sprintf("%d",fam2);
+      nom2=nom2.sprintf("%d",(int)fam2);
       it2=fam.find(nom2);
       if ( (it1==fam.end())||(it2==fam.end()) ) {
          std::cerr<<"***fuse_goups*** non existing family "<<fam1<<" or "<<fam2<<std::endl;
@@ -315,9 +315,9 @@ CVWtab::CVWtab(long nb, med_float *pmflo)
 //************************************
 CVWtab::~CVWtab()
 {
-   bool ok;
+   //bool ok;
    //std::cout<<"   destructor CVWtab *** "<<this->filename<<std::endl;
-   ok=this->CVWtab_deallocate();
+   /*ok=*/this->CVWtab_deallocate();
    //remove temporary file
    if (this->filename!="_NO_FILE")
    {
@@ -489,7 +489,7 @@ bool ghs3dprl_mesh_wrap::ReadFileMSGnew(const QString FileName)
    std::fstream Ff(FileName.toLatin1().constData(),std::ios_base::in);
    std::string line;
    long i,count,nbneighbour,ineighbour;
-   bool ok;
+   //bool ok;
 
    if (!Ff.is_open())
    {
@@ -511,7 +511,7 @@ bool ghs3dprl_mesh_wrap::ReadFileMSGnew(const QString FileName)
 
          CVWtab *montab=new CVWtab(count,tmint);
          tmp=tmp.sprintf("MS%ld NE%ld VE SE",this->nofile,ineighbour);
-         ok=this->insert_key(tmp,montab);
+         /*ok=*/this->insert_key(tmp,montab);
       }
       if (!CVW_FindString("<edges count=",Ff,count)) return false;
       if (count>0){
@@ -521,7 +521,7 @@ bool ghs3dprl_mesh_wrap::ReadFileMSGnew(const QString FileName)
 
          CVWtab *montab=new CVWtab(count,tmint);
          tmp=tmp.sprintf("MS%ld NE%ld ED SE",this->nofile,ineighbour);
-         ok=this->insert_key(tmp,montab);
+         /*ok=*/this->insert_key(tmp,montab);
       }
       if (!CVW_FindString("<faces count=",Ff,count)) return false;
       if (count>0){
@@ -531,7 +531,7 @@ bool ghs3dprl_mesh_wrap::ReadFileMSGnew(const QString FileName)
 
          CVWtab *montab=new CVWtab(count,tmint);
          tmp=tmp.sprintf("MS%ld NE%ld FA SE",this->nofile,ineighbour);
-         ok=this->insert_key(tmp,montab);
+         /*ok=*/this->insert_key(tmp,montab);
       }
       if (!CVW_FindString("<elements count=",Ff,count)) return false;
       if (count>0){
@@ -541,7 +541,7 @@ bool ghs3dprl_mesh_wrap::ReadFileMSGnew(const QString FileName)
 
          CVWtab *montab=new CVWtab(count,tmint);
          tmp=tmp.sprintf("MS%ld NE%ld EL SE",this->nofile,ineighbour);
-         ok=this->insert_key(tmp,montab);
+         /*ok=*/this->insert_key(tmp,montab);
       }
    }
 
@@ -559,8 +559,7 @@ bool ghs3dprl_mesh_wrap::TestExistingFileMESHnew(const QString FileName)
    QString tmp;
    std::fstream Ff(FileName.toLatin1().constData(),std::ios_base::in);
    std::string line;
-   long i,count,meshversion,maxline;
-   bool ok;
+   long maxline;
 
    if (!Ff.is_open())
    {
@@ -587,7 +586,7 @@ bool ghs3dprl_mesh_wrap::ReadFileGLO(const QString FileName)
    std::fstream Ff(FileName.toLatin1().constData(),std::ios_base::in);
    std::string line;
    long count;
-   bool ok;
+   //bool ok;
 
    if (!Ff.is_open())
    {
@@ -606,7 +605,7 @@ bool ghs3dprl_mesh_wrap::ReadFileGLO(const QString FileName)
 
       CVWtab *montab=new CVWtab(count,tmint);
       tmp=tmp.sprintf("GL%ld VE",this->nofile);
-      ok=this->insert_key(tmp,montab);
+      /*ok=*/this->insert_key(tmp,montab);
    }
 
    if (!CVW_FindString("<edges count=",Ff,count)) return false;
@@ -619,7 +618,7 @@ bool ghs3dprl_mesh_wrap::ReadFileGLO(const QString FileName)
 
       CVWtab *montab=new CVWtab(count,tmint);
       tmp=tmp.sprintf("GL%ld ED",this->nofile);
-      ok=this->insert_key(tmp,montab);
+      /*ok=*/this->insert_key(tmp,montab);
    }
 
    if (!CVW_FindString("<faces count=",Ff,count)) return false;
@@ -632,7 +631,7 @@ bool ghs3dprl_mesh_wrap::ReadFileGLO(const QString FileName)
 
       CVWtab *montab=new CVWtab(count,tmint);
       tmp=tmp.sprintf("GL%ld FA",this->nofile);
-      ok=this->insert_key(tmp,montab);
+      /*ok=*/this->insert_key(tmp,montab);
    }
 
    if (!CVW_FindString("<elements count=",Ff,count)) return false;
@@ -645,7 +644,7 @@ bool ghs3dprl_mesh_wrap::ReadFileGLO(const QString FileName)
 
       CVWtab *montab=new CVWtab(count,tmint);
       tmp=tmp.sprintf("GL%ld EL",this->nofile);
-      ok=this->insert_key(tmp,montab);
+      /*ok=*/this->insert_key(tmp,montab);
    }
    //Ferme le fichier :
    Ff.close();
@@ -664,7 +663,7 @@ bool ghs3dprl_mesh_wrap::ReadFileGLOBAL(const QString FileName)
    long vert=0,edge=0,tria=0,tetr=0,count=0;
    med_int *tmint;
    CVWtab *montab;
-   bool ok;
+   //bool ok;
    
    if (verbose>=6) std::cout<<"Read file '"<<FileName.toLatin1().constData()<<std::endl;
    if (!Ff.is_open())
@@ -711,7 +710,7 @@ bool ghs3dprl_mesh_wrap::ReadFileGLOBAL(const QString FileName)
 
    montab=new CVWtab(count,tmint);
    tmp=tmp.sprintf("GL%ld VE",this->nofile);
-   ok=this->insert_key(tmp,montab);
+   /*ok=*/this->insert_key(tmp,montab);
 
    count=edge;
    tmint=new med_int[count];
@@ -720,7 +719,7 @@ bool ghs3dprl_mesh_wrap::ReadFileGLOBAL(const QString FileName)
 
    montab=new CVWtab(count,tmint);
    tmp=tmp.sprintf("GL%ld ED",this->nofile);
-   ok=this->insert_key(tmp,montab);
+   /*ok=*/this->insert_key(tmp,montab);
 
    count=tria;
    tmint=new med_int[count];
@@ -729,7 +728,7 @@ bool ghs3dprl_mesh_wrap::ReadFileGLOBAL(const QString FileName)
 
    montab=new CVWtab(count,tmint);
    tmp=tmp.sprintf("GL%ld FA",this->nofile);
-   ok=this->insert_key(tmp,montab);
+   /*ok=*/this->insert_key(tmp,montab);
 
    count=tetr;
    tmint=new med_int[count];
@@ -738,7 +737,7 @@ bool ghs3dprl_mesh_wrap::ReadFileGLOBAL(const QString FileName)
 
    montab=new CVWtab(count,tmint);
    tmp=tmp.sprintf("GL%ld EL",this->nofile);
-   ok=this->insert_key(tmp,montab);
+   /*ok=*/this->insert_key(tmp,montab);
 
    //Ferme le fichier :
    Ff.close();
@@ -754,7 +753,7 @@ bool ghs3dprl_mesh_wrap::ReadFileDefaultGLOBAL(long vert, long edge, long tria,
    long count=0;
    med_int *tmint;
    CVWtab *montab;
-   bool ok;
+   //bool ok;
    
    //Simule les donnees :
    std::cout<<"Default Global numerotation nb verts "<<vert<<" nb edges "<<edge<<" nb trias "<<tria<<" nb tetras "<<tetr<<std::endl;
@@ -766,7 +765,7 @@ bool ghs3dprl_mesh_wrap::ReadFileDefaultGLOBAL(long vert, long edge, long tria,
 
    montab=new CVWtab(count,tmint);
    tmp=tmp.sprintf("GL%ld VE",this->nofile);
-   ok=this->insert_key(tmp,montab);
+   /*ok=*/this->insert_key(tmp,montab);
 
    count=edge;
    tmint=new med_int[count];
@@ -775,7 +774,7 @@ bool ghs3dprl_mesh_wrap::ReadFileDefaultGLOBAL(long vert, long edge, long tria,
 
    montab=new CVWtab(count,tmint);
    tmp=tmp.sprintf("GL%ld ED",this->nofile);
-   ok=this->insert_key(tmp,montab);
+   /*ok=*/this->insert_key(tmp,montab);
 
    count=tria;
    tmint=new med_int[count];
@@ -784,7 +783,7 @@ bool ghs3dprl_mesh_wrap::ReadFileDefaultGLOBAL(long vert, long edge, long tria,
 
    montab=new CVWtab(count,tmint);
    tmp=tmp.sprintf("GL%ld FA",this->nofile);
-   ok=this->insert_key(tmp,montab);
+   /*ok=*/this->insert_key(tmp,montab);
 
    count=tetr;
    tmint=new med_int[count];
@@ -793,7 +792,7 @@ bool ghs3dprl_mesh_wrap::ReadFileDefaultGLOBAL(long vert, long edge, long tria,
 
    montab=new CVWtab(count,tmint);
    tmp=tmp.sprintf("GL%ld EL",this->nofile);
-   ok=this->insert_key(tmp,montab);
+   /*ok=*/this->insert_key(tmp,montab);
 
    return true;
 }
@@ -1069,7 +1068,7 @@ bool ghs3dprl_mesh_wrap::ReadFileNOBOITE(const QString FileName)
    QString tmp;
    std::fstream Ff(FileName.toLatin1().constData(),std::ios_base::in);
    long ne,np,npfixe,subnumber,reste;
-   bool ok;
+   //bool ok;
 
    if (!Ff.is_open()){
       std::cerr<<"Problem File '"<<FileName.toLatin1().constData()<<"' not open\n"<<std::endl;
@@ -1092,7 +1091,7 @@ bool ghs3dprl_mesh_wrap::ReadFileNOBOITE(const QString FileName)
 
    CVWtab *montab=new CVWtab(ne*4,tmint);
    tmp=tmp.sprintf("NB%ld EV",this->nofile);
-   ok=this->insert_key(tmp,montab);
+   /*ok=*/this->insert_key(tmp,montab);
 
    med_float *tmflo=new med_float[np*3];
    for (int i=0; i<np*3; i++) Ff>>tmflo[i];
@@ -1100,7 +1099,7 @@ bool ghs3dprl_mesh_wrap::ReadFileNOBOITE(const QString FileName)
 
    montab=new CVWtab(np*3,tmflo);
    tmp=tmp.sprintf("NB%ld VC",this->nofile);
-   ok=this->insert_key(tmp,montab);
+   /*ok=*/this->insert_key(tmp,montab);
 
    Ff>>subnumber;
    if (verbose>2) std::cout<<"NumberOfSubdomains="<<subnumber<<std::endl;
@@ -1129,7 +1128,7 @@ bool ghs3dprl_mesh_wrap::ReadFileNOBOITE(const QString FileName)
 
    montab=new CVWtab(subnumber*3,tmint);
    tmp=tmp.sprintf("NB%ld SN",this->nofile);
-   ok=this->insert_key(tmp,montab);
+   /*ok=*/this->insert_key(tmp,montab);
 
    //swap on file if too big for memory in one cpu
    //default 1GOctet/8(for double)/10(for arrays in memory at the same time)
@@ -1149,7 +1148,7 @@ bool ghs3dprl_mesh_wrap::ReadFileNOBOITEB(const QString FileName)
 //but NOT parameter option of tepal
 //idem ReadFileNOBOITE with read unformatted
 {
-   bool ok;
+   //bool ok;
    QString tmp;
    std::cerr<<"Problem function ReadFileNOBOITEB\n"
        <<"(no FORTRAN binary format files in tepal)\n\n";
@@ -1193,7 +1192,7 @@ bool ghs3dprl_mesh_wrap::ReadFileNOBOITEB(const QString FileName)
 
    CVWtab *montab=new CVWtab(ne*4,tmint);
    tmp=tmp.sprintf("NB%ld EV",this->nofile);
-   ok=this->insert_key(tmp,montab);
+   /*ok=*/this->insert_key(tmp,montab);
 
    fread(&reste,sizeof(long),1,Ff);
    //std::cout<<"info "<<reste<<" "<<np*3<<" "<<sizeof(med_float)<<std::endl;
@@ -1207,7 +1206,7 @@ bool ghs3dprl_mesh_wrap::ReadFileNOBOITEB(const QString FileName)
 
    montab=new CVWtab(np*3,tmflo);
    tmp=tmp.sprintf("NB%ld VC",this->nofile);
-   ok=this->insert_key(tmp,montab);
+   /*ok=*/this->insert_key(tmp,montab);
 
    fread(&reste,sizeof(long),1,Ff);
    fread(&subnumber,sizeof(long),1,Ff);
@@ -1224,7 +1223,7 @@ bool ghs3dprl_mesh_wrap::ReadFileNOBOITEB(const QString FileName)
    delete tlong;
    montab=new CVWtab(subnumber*3,tmint);
    tmp=tmp.sprintf("NB%ld SN",this->nofile);
-   ok=this->insert_key(tmp,montab);
+   /*ok=*/this->insert_key(tmp,montab);
 
    //swap on file if too big for memory in one cpu
    //default 1GOctet/8(for double)/10(for arrays in memory at the same time)
@@ -1401,7 +1400,7 @@ long ghs3dprl_mesh_wrap::SwapOutOfMemory_key_mesh_wrap(const QRegExp &rxp,
 //swap on file if not yet and if size greater than ifgreaterthan
 {
    long nb=0;
-   bool ok;
+   //bool ok;
    QHashIterator<QString,CVWtab*> it(this->mestab);
    while ( it.hasNext() ) {
      it.next();
@@ -1413,7 +1412,7 @@ long ghs3dprl_mesh_wrap::SwapOutOfMemory_key_mesh_wrap(const QRegExp &rxp,
                    it.key().toLatin1().constData()<<
                    " size "<<it.value()->size<<">"<<ifgreaterthan<<std::endl;
            //free memory
-           ok=SwapOnFile(it.key(),this->path,it.value(),this->verbose);
+           /*ok=*/SwapOnFile(it.key(),this->path,it.value(),this->verbose);
        }
      }
    }
@@ -1444,7 +1443,7 @@ bool ghs3dprl_mesh_wrap::insert_key(const QString &key,CVWtab *tab)
 //si tableaux contenus on dimension superieure
 //alors swap disque dans getenv(tmp) fichier temporaire binaire
 {
-   bool ok;
+   //bool ok;
    if (verbose>4)
       std::cout<<"insert key "<<key.toLatin1().constData()<<
             " size="<<tab->size<<std::endl;
@@ -1452,7 +1451,7 @@ bool ghs3dprl_mesh_wrap::insert_key(const QString &key,CVWtab *tab)
    if (this->nbelem_limit_swap<tab->size) {
       if (verbose>3) std::cout<<"insert key automatic SwapOnFile "<<
                            key.toLatin1().constData()<<std::endl;
-      ok=SwapOnFile(key,this->path,tab,this->verbose);
+      /*ok=*/SwapOnFile(key,this->path,tab,this->verbose);
    }
    this->mestab.insert(key,tab);
    return true;
@@ -1710,7 +1709,7 @@ bool ghs3dprl_mesh_wrap::Find_VerticesDomainToVerticesSkin()
    if (!cooskin) return false;
    if (verbose>4)std::cout<<"NumberVerticesSKIN="<<cooskin->size/3<<std::endl;
    //ici pourrait creer BBtree sur skin
-   for (int ifile=1; ifile<=this->nbfiles; ifile++)
+   for (long ifile=1; ifile<=this->nbfiles; ifile++)
    {
       key1=key1.sprintf("NB%ld VC",ifile);
       coodom=this->restore_key(key1);
@@ -1788,7 +1787,7 @@ bool ghs3dprl_mesh_wrap::Write_masterxmlMEDfile()
    med_int majeur,mineur,release;
    //Quelle version de MED est utilisee
    MEDlibraryNumVersion(&majeur,&mineur,&release);
-   if (verbose>0) fprintf(stdout,"File write %s with MED V%d.%d.%d\n",filemaster.c_str(),majeur,mineur,release);
+   if (verbose>0) fprintf(stdout,"File write %s with MED V%d.%d.%d\n",filemaster.c_str(),(int)majeur,(int)mineur,(int)release);
    node = xmlNewChild(root_node, 0, BAD_CAST "version",0);
    //xmlNewProp(node, BAD_CAST "maj", BAD_CAST int2string2(majeur).c_str());
    xmlNewProp(node, BAD_CAST "maj", BAD_CAST i2a(majeur).c_str());
@@ -1840,7 +1839,7 @@ bool ghs3dprl_mesh_wrap::Write_masterxmlMEDfile()
 
    //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!all calls add xml idom node
    {
-   fprintf(stdout,"Xml node write %s idom %d\n",filemaster.c_str(), idom);
+   fprintf(stdout,"Xml node write %s idom %d\n",filemaster.c_str(), (int)idom);
    char *hostname = getenv("HOSTNAME");
    node = xmlNewChild(files_node,0,BAD_CAST "subfile",0);
    xmlNewProp(node, BAD_CAST "id", BAD_CAST i2a(idom).c_str());
@@ -1878,10 +1877,10 @@ bool ghs3dprl_mesh_wrap::Write_masterxmlMEDfile()
    }
 
    //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!last call
-   fprintf(stdout,"xml node idom %d/%d nb tetras total %d\n", idom, nbfilestot, nbtetrastotal);
+   fprintf(stdout,"xml node idom %d/%ld nb tetras total %ld\n", (int)idom, nbfilestot, nbtetrastotal);
    if (idom==nbfilestot)
    {
-   fprintf(stdout,"File write %s as last idom nb tetras total %d\n",filemaster.c_str(), nbtetrastotal);
+   fprintf(stdout,"File write %s as last idom nb tetras total %ld\n",filemaster.c_str(), nbtetrastotal);
    node2 = xmlNewChild(info_node, 0, BAD_CAST "global",0);
    xmlNewProp(node2, BAD_CAST "tetrahedra_number", BAD_CAST i2a(nbtetrastotal).c_str());
    //save masterfile
@@ -1894,10 +1893,10 @@ bool ghs3dprl_mesh_wrap::Write_masterxmlMEDfile()
 
 
 //************************************
-bool ghs3dprl_mesh_wrap::Write_MEDfiles_v2(bool deletekeys)
+bool ghs3dprl_mesh_wrap::Write_MEDfiles_v2(bool /*deletekeys*/)
 //deletekeys=true to delete non utils keys and arrays "au fur et a mesure"
 {
-   bool ok=true,oktmp;
+   bool ok=true/*,oktmp*/;
    QString tmp,cmd;
    char description[MED_COMMENT_SIZE];
    char dtunit[MED_SNAME_SIZE+1]="_NO_UNIT";
@@ -1919,7 +1918,7 @@ bool ghs3dprl_mesh_wrap::Write_MEDfiles_v2(bool deletekeys)
    }
 
    //create file resume DOMAIN.joints.med of all joints for quick display (...may be...)
-   tmp=path+medname+tmp.sprintf("_joints.med",idom);
+   tmp=path+medname+tmp.sprintf("_joints.med");
    charendnull(distfilename,tmp,MED_COMMENT_SIZE);
    fidjoint=MEDfileOpen(distfilename,MED_ACC_CREAT);
    if (fidjoint<0) std::cerr<<"Problem MEDfileOpen "<<distfilename<<std::endl;
@@ -1949,42 +1948,42 @@ bool ghs3dprl_mesh_wrap::Write_MEDfiles_v2(bool deletekeys)
    //define family Group_of_New_Nodes (which not exists before tetrahedra)
    famallnodes=0;
    if (QString("All_Nodes").contains(deletegroups)==0){
-      oktmp=families.get_number_of_new_family(1,&famallnodes,&tmp);
+      /*oktmp=*/families.get_number_of_new_family(1,&famallnodes,&tmp);
       families.add(tmp,"All_Nodes");
    }
    else if (verbose>3) std::cout<<"--deletegroups matches \"All_Nodes\"\n";
    
    famalltria3=0;
    if (QString("All_Faces").contains(deletegroups)==0){
-      oktmp=families.get_number_of_new_family(-1,&famalltria3,&tmp);
+      /*oktmp=*/families.get_number_of_new_family(-1,&famalltria3,&tmp);
       families.add(tmp,"All_Faces");
    }
    else if (verbose>3) std::cout<<"--deletegroups matches \"All_Faces\"\n";
 
    famalltetra4=0;
    if (QString("All_Tetrahedra").contains(deletegroups)==0){
-      oktmp=families.get_number_of_new_family(-1,&famalltetra4,&tmp);
+      /*oktmp=*/families.get_number_of_new_family(-1,&famalltetra4,&tmp);
       families.add(tmp,"All_Tetrahedra");
    }
    else if (verbose>3) std::cout<<"--deletegroups matches \"All_Tetrahedra\"\n";
 
    famnewnodes=0;
    if (QString("New_Nodes").contains(deletegroups)==0){
-      oktmp=families.get_number_of_new_family(1,&famnewnodes,&tmp);
+      /*oktmp=*/families.get_number_of_new_family(1,&famnewnodes,&tmp);
       families.add(tmp,"New_Nodes");
    }
    else if (verbose>3) std::cout<<"--deletegroups matches \"New_Nodes\"\n";
    
    famnewtria3=0;
    if (QString("New_Faces").contains(deletegroups)==0){
-      oktmp=families.get_number_of_new_family(-1,&famnewtria3,&tmp);
+      /*oktmp=*/families.get_number_of_new_family(-1,&famnewtria3,&tmp);
       families.add(tmp,"New_Faces");
    }
    else if (verbose>3) std::cout<<"--deletegroups matches \"New_Faces\"\n";
    
    famnewtetra4=0;
    if (QString("New_Tetrahedra").contains(deletegroups)==0){
-      oktmp=families.get_number_of_new_family(-1,&famnewtetra4,&tmp);
+      /*oktmp=*/families.get_number_of_new_family(-1,&famnewtetra4,&tmp);
       families.add(tmp,"New_Tetrahedra");
    }
    else if (verbose>3) std::cout<<"--deletegroups matches \"New_Tetrahedra\"\n";
@@ -2016,7 +2015,7 @@ bool ghs3dprl_mesh_wrap::Write_MEDfiles_v2(bool deletekeys)
       //restore initial context of families
       if (idom>1) families=intermediatesfamilies;
       //if (idom>1) continue;
-      tmp=path+medname+tmp.sprintf("_%d.med",idom);
+      tmp=path+medname+tmp.sprintf("_%d.med",(int)idom);
       charendnull(distfilename,tmp,MED_COMMENT_SIZE);
 
       //std::cout<<"<"<<distfilename<<">"<<std::endl;
@@ -2028,9 +2027,9 @@ bool ghs3dprl_mesh_wrap::Write_MEDfiles_v2(bool deletekeys)
       }
  
       //create mesh
-      tmp=medname+tmp.sprintf("_%d",idom);
+      tmp=medname+tmp.sprintf("_%d",(int)idom);
       charendnull(nomfinal,tmp,MED_NAME_SIZE);
-      tmp=tmp.sprintf("domain %d among %d",idom,nbfilestot);
+      tmp=tmp.sprintf("domain %d among %ld",(int)idom,nbfilestot);
       charendnull(description,tmp,MED_COMMENT_SIZE);
 
       if (verbose>4) std::cout<<"Description : "<<description<<std::endl;
@@ -2086,7 +2085,7 @@ bool ghs3dprl_mesh_wrap::Write_MEDfiles_v2(bool deletekeys)
     
       MEDfileClose(fid); //no error
       //master.xml writings
-      oktmp=Write_masterxmlMEDfile();
+      /*oktmp=*/Write_masterxmlMEDfile();
       continue;       //and loop on others domains
 
       erreur:         //error
@@ -2107,13 +2106,13 @@ bool ghs3dprl_mesh_wrap::idom_nodes()
 {
    bool ok=true;
    QString tmp,key,key1,key2,key3;
-   CVWtab *tab,*tab1,*tab2,*tab3;
+   CVWtab *tab,*tab1,*tab2/*,*tab3*/;
    med_int i,j,*arrayi;
-   int xx;
+   //int xx;
 
       //writing node(vertices) coordinates
       //NBx VC=files.NoBoite Vertex Coordinates
-      key=key.sprintf("NB%d VC",idom); //files.NoBoite Vertex Coordinates
+      key=key.sprintf("NB%d VC",(int)idom); //files.NoBoite Vertex Coordinates
       tab=this->restore_key(key); //tab1=this->mestab[key1];
       if (!tab) {
          if (!for_tetrahpc) {
@@ -2130,9 +2129,9 @@ bool ghs3dprl_mesh_wrap::idom_nodes()
          tab=this->restore_key(key); //tab1=this->mestab[key1];
          if (!tab) return false;
       }
-      tmp=tmp.sprintf("NB%d SN",idom);
+      tmp=tmp.sprintf("NB%d SN",(int)idom);
       //qt3 xx=this->remove_key_mesh_wrap(QRegExp(tmp,true,true));
-      xx=this->remove_key_mesh_wrap(QRegExp(tmp,Qt::CaseSensitive,QRegExp::RegExp));
+      /*xx=*/this->remove_key_mesh_wrap(QRegExp(tmp,Qt::CaseSensitive,QRegExp::RegExp));
       nbnodes=this->nbvert; // for current idom
       
       err=MEDmeshNodeCoordinateWr(fid,nomfinal,MED_NO_DT,MED_NO_IT,0.,MED_FULL_INTERLACE,nbnodes,tab->tmflo);
@@ -2148,7 +2147,7 @@ bool ghs3dprl_mesh_wrap::idom_nodes()
 
     // if (!for_multithread) 
     {
-      key1=key1.sprintf("GL%d VE",idom); //global numerotation 
+      key1=key1.sprintf("GL%d VE",(int)idom); //global numerotation 
       tab1=this->restore_key(key1); //tab1=this->mestab[key1];
       if (!tab1) {
          if (!for_tetrahpc) {
@@ -2165,10 +2164,10 @@ bool ghs3dprl_mesh_wrap::idom_nodes()
       }
       if (nbnodes!=tab1->size){std::cerr<<"Problem size GLi VE!=nbnodes!"<<std::endl; return false;}
 
-      key2=key2.sprintf("SKIN_VERTICES_FAMILIES",idom); //on global numerotation 
+      key2=key2.sprintf("SKIN_VERTICES_FAMILIES"); //on global numerotation 
       tab2=this->restore_key(key2); //tab1=this->mestab[key1];
       med_int nbskin=0; 
-      if (tab2) med_int nbskin=tab2->size;
+      if (tab2) nbskin=tab2->size;
       //for (i=0; i<nbskin; i++) std::cout<<i<<" "<<tab2->tmint[i]<<std::endl;
 
       //set families of nodes existing in GHS3DPRL_skin.med
@@ -2200,8 +2199,8 @@ bool ghs3dprl_mesh_wrap::idom_nodes()
    return ok;
 }
 
-/*
 //************************************
+/*
 bool ghs3dprl_mesh_wrap::set_one_more_family_old(med_int *fami, med_int *more, med_int nb)
 //fuse array of med_int families more et fami as kind of groups 
 //because there are possibilities of intersections
@@ -2233,7 +2232,7 @@ bool ghs3dprl_mesh_wrap::set_one_more_family(med_int *fami, med_int *more, med_i
 //because there are possibilities of intersections
 {
    QString tmp;
-   med_int i,ii,j,newfam,morfam,oldfam,morfami,oldfami,i_zero,nb_fam,nb_max,nb_tot,nb_mess;
+   med_int i,ii,newfam,morfam,oldfam,morfami,oldfami,i_zero,nb_fam,nb_max,nb_tot,nb_mess;
    med_int *newfami;
 
    nb_fam=families.fam.size(); //on families negative and positive
@@ -2305,12 +2304,12 @@ bool ghs3dprl_mesh_wrap::idom_faces()
 {
    bool ok=true;
    QString tmp,key,key1,key2,key3;
-   CVWtab *tab,*tab1,*tab2,*tab3;
-   med_int ii,i,j,*arrayi;
-   int xx;
+   CVWtab *tab1,*tab2;
+   med_int /*ii,*/i,j,*arrayi;
+   //int xx;
 
       //writing connectivity of faces triangles of wrap by nodes
-      key1=key1.sprintf("FC%d",idom); //files.FaCes faces (wrap and triangles only)
+   key1=key1.sprintf("FC%d",(int)idom); //files.FaCes faces (wrap and triangles only)
       tab1=this->restore_key(key1); //tab1=this->mestab[key1];
       if (!tab1) {
          tmp=pathini+casename+tmp.sprintf(format.toLatin1().constData(),nbfilestot,idom)+".faces";
@@ -2348,12 +2347,12 @@ bool ghs3dprl_mesh_wrap::idom_faces()
       //GLx FA=files.GLo FAces
       // if (!for_multithread) 
       {
-        key1=key1.sprintf("GL%d FA",idom);
+        key1=key1.sprintf("GL%d FA",(int)idom);
         tab1=this->restore_key(key1); //tab1=this->mestab[key1];
         if (nbtria3!=tab1->size){std::cerr<<"Problem size GLi FA!=nbtria3!"<<std::endl; return false;}
       
       
-        key2=key2.sprintf("SKIN_TRIA3_FAMILIES",idom); //on global numerotation 
+        key2=key2.sprintf("SKIN_TRIA3_FAMILIES"); //on global numerotation 
         tab2=this->restore_key(key2); //tab1=this->mestab[key1];
         med_int nbskin=0; 
         if (tab2) nbskin=tab2->size;
@@ -2381,13 +2380,13 @@ bool ghs3dprl_mesh_wrap::idom_faces()
         err=MEDmeshGlobalNumberWr(fid,nomfinal,MED_NO_DT,MED_NO_IT,MED_CELL,MED_TRIA3,tab1->size,tab1->tmint);
         if (err<0){std::cerr<<"Problem MEDmeshGlobalNumberWr faces"<<std::endl; return false;}
 
-        //xx=this->remove_key_mesh_wrap(QRegExp("FC*",true,true));
-        tmp=tmp.sprintf("GL%d FA",idom);
-        //qt3 xx=this->remove_key_mesh_wrap(QRegExp(tmp,true,true));
-        xx=this->remove_key_mesh_wrap(QRegExp(tmp,Qt::CaseSensitive,QRegExp::RegExp));
-        tmp=tmp.sprintf("GL%d VE",idom);
-        //qt3 xx=this->remove_key_mesh_wrap(QRegExp(tmp,true,true));
-        xx=this->remove_key_mesh_wrap(QRegExp(tmp,Qt::CaseSensitive,QRegExp::RegExp));
+        ///*xx=*/this->remove_key_mesh_wrap(QRegExp("FC*",true,true));
+        tmp=tmp.sprintf("GL%d FA",(int)idom);
+        //qt3 /*xx=*/this->remove_key_mesh_wrap(QRegExp(tmp,true,true));
+        /*xx=*/this->remove_key_mesh_wrap(QRegExp(tmp,Qt::CaseSensitive,QRegExp::RegExp));
+        tmp=tmp.sprintf("GL%d VE",(int)idom);
+        //qt3 /*xx=*/this->remove_key_mesh_wrap(QRegExp(tmp,true,true));
+        /*xx=*/this->remove_key_mesh_wrap(QRegExp(tmp,Qt::CaseSensitive,QRegExp::RegExp));
       }
 
    return ok;
@@ -2399,21 +2398,21 @@ bool ghs3dprl_mesh_wrap::idom_joints()
    bool ok=true;
    QString tmp,namejoint,key,key1,key2;
    CVWtab *tab,*tab1,*tab2;
-   med_int ineig,ii,jj,i,j,k,*arrayi,nb,famjoint,*fammore,*inodes,*arrayfaces;
+   med_int ineig,ii,jj,i,j,k,*arrayi,nb,famjoint,*inodes,*arrayfaces;
    med_float *arraynodes;
    char namejnt[MED_NAME_SIZE+1];  //no more 32
    char namedist[MED_NAME_SIZE+1];
    char descjnt[MED_COMMENT_SIZE+1];
-   med_int numfam_ini_wrap=100;
+   //med_int numfam_ini_wrap=100;
    joints_node=xmlNewNode(NULL, BAD_CAST "joints");  //masterfile.xml
    med_int nbjoints=0,nbnodesneig,nbtria3neig;
    std::string sjoints=""; //which domains are neighbourg
-   int xx;
+   //int xx;
    char dtunit[MED_SNAME_SIZE+1]="_NO_UNIT";
    char axisname[MED_SNAME_SIZE*3+1]="x               y               z               ";
    char axisunit[MED_SNAME_SIZE*3+1]="_NO_UNIT        _NO_UNIT        _NO_UNIT        ";
 
-      tmp=tmp.sprintf("MS%d *",idom);
+      tmp=tmp.sprintf("MS%d *",(int)idom);
       //read file .msg if not done
       //qt3 if (this->nb_key_mesh_wrap(QRegExp(tmp,true,true))<=0) {
       if (this->nb_key_mesh_wrap(QRegExp(tmp,Qt::CaseSensitive,QRegExp::RegExp))<=0) {
@@ -2439,10 +2438,10 @@ bool ghs3dprl_mesh_wrap::idom_joints()
 
          //!*************nodes
          //std::cout<<"\n    nodes joints\n";
-         key1=key1.sprintf("MS%d NE%d VE SE",idom,ineig); //SE or RE identicals
+         key1=key1.sprintf("MS%d NE%d VE SE",(int)idom,(int)ineig); //SE or RE identicals
          tab1=restore_key(key1);
          if (!tab1) continue; //case (ifile,ineig) are not neighbours=>no joints
-         key1=key1.sprintf("MS%d NE%d VE SE",ineig,idom); //SE or RE identicals
+         key1=key1.sprintf("MS%d NE%d VE SE",(int)ineig,(int)idom); //SE or RE identicals
          tab2=this->restore_key(key1);
          //if not yet loaded (first time) try to load necessary file msg of neighbourg
          if (!tab2) {
@@ -2476,11 +2475,11 @@ bool ghs3dprl_mesh_wrap::idom_joints()
          sjoints=sjoints+" "+i2a(ineig);
          if (verbose>4)
             std::cout<<"NumberOfNodesOfJoint_"<<idom<<"_"<<ineig<<"="<<nb<<std::endl;
-         namejoint=namejoint.sprintf("JOINT_%d_%d_Nodes",idom,ineig);
+         namejoint=namejoint.sprintf("JOINT_%d_%d_Nodes",(int)idom,(int)ineig);
          strcpy(namejnt,namejoint.toLatin1().constData());
-         tmp=tmp.sprintf("JOINT_%d_%d among %d domains of ",idom,ineig,nbfilestot)+nomfinal;
+         tmp=tmp.sprintf("JOINT_%d_%d among %ld domains of ",(int)idom,(int)ineig,nbfilestot)+nomfinal;
          strcpy(descjnt,tmp.toLatin1().constData());
-         tmp=medname+tmp.sprintf("_%d",ineig);
+         tmp=medname+tmp.sprintf("_%d",(int)ineig);
          strcpy(namedist,tmp.toLatin1().constData());
          err=MEDsubdomainJointCr(fid,nomfinal,namejnt,descjnt,ineig,namedist);
          if (err<0) std::cerr<<"Problem MEDsubdomainJointCr"<<std::endl;
@@ -2491,7 +2490,7 @@ bool ghs3dprl_mesh_wrap::idom_joints()
             families.add(tmp,namejoint);
          }
 
-         key=key.sprintf("NB%d VC",idom); //files.NoBoite Vertex Coordinates
+         key=key.sprintf("NB%d VC",(int)idom); //files.NoBoite Vertex Coordinates
          tab=this->restore_key(key); //tab1=this->mestab[key1];
          nbnodes=tab->size/3;
 
@@ -2529,7 +2528,7 @@ bool ghs3dprl_mesh_wrap::idom_joints()
          //writing correspondence triangles-triangles
          //std::cout<<"\n    faces joints\n";
          nbtria3neig=0;
-         key1=key1.sprintf("MS%d NE%d FA SE",idom,ineig); //SE or RE identicals
+         key1=key1.sprintf("MS%d NE%d FA SE",(int)idom,(int)ineig); //SE or RE identicals
          tab1=this->restore_key(key1); //tab1=this->mestab[key1];
          if (!tab1){
             if (verbose>4)
@@ -2538,7 +2537,7 @@ bool ghs3dprl_mesh_wrap::idom_joints()
          }
          else //have to set xml may be no faces but nodes in a joint!
          {
-         key1=key1.sprintf("MS%d NE%d FA SE",ineig,idom); //SE or RE identicals
+         key1=key1.sprintf("MS%d NE%d FA SE",(int)ineig,(int)idom); //SE or RE identicals
          tab2=this->restore_key(key1);
          if (!tab2) std::cerr<<"Problem existing triangles of joint in domain "<<idom<<
                                " with none in neighbourg "<<ineig<<" files .msg"<<std::endl;
@@ -2548,7 +2547,7 @@ bool ghs3dprl_mesh_wrap::idom_joints()
                   " number of triangles of joint "<<idom<<"<->"<<ineig<<" not equals"<<std::endl;
             continue;
          }
-         namejoint=namejoint.sprintf("JOINT_%d_%d_Faces",idom,ineig);
+         namejoint=namejoint.sprintf("JOINT_%d_%d_Faces",(int)idom,(int)ineig);
          
          famjoint=0;
          if (namejoint.contains(deletegroups)==0){
@@ -2556,7 +2555,7 @@ bool ghs3dprl_mesh_wrap::idom_joints()
             families.add(tmp,namejoint);
          }
 
-         key=key.sprintf("FC%d",idom); //files.FaCes faces (wrap and triangles only)
+         key=key.sprintf("FC%d",(int)idom); //files.FaCes faces (wrap and triangles only)
          tab=this->restore_key(key); //tab1=this->mestab[key1];
 
          med_int nb=tab1->size; nbtria3neig=nb;
@@ -2582,11 +2581,11 @@ bool ghs3dprl_mesh_wrap::idom_joints()
             arrayfaces[jj]=inodes[tab->tmint[k+1]-1]; jj++;
             arrayfaces[jj]=inodes[tab->tmint[k+2]-1]; jj++;
          }
-         int happens=0;
+         //int happens=0;
          for (i=0; i<nbtria3neig*3 ; i++) {
            if (arrayfaces[i]<=0) {
              std::cerr<<"Problem file X_joints.med unknown node in joint "<<idom<<"_"<<ineig<<" face "<<i/3+1<<std::endl; //precaution
-             happens=1;
+             //happens=1;
            }
          }
          /*TODO DEBUG may be bug distene?
@@ -2611,9 +2610,9 @@ bool ghs3dprl_mesh_wrap::idom_joints()
          //!write in file resume DOMAIN.joints.med of all joints for quick display (...may be...)
          if (idom<=ineig) { //no duplicate joint_1_2 and joint_2_1
           //create mesh
-          namejoint=namejoint.sprintf("JOINT_%d_%d",idom,ineig);
+          namejoint=namejoint.sprintf("JOINT_%d_%d",(int)idom,(int)ineig);
           charendnull(namejnt,namejoint,MED_NAME_SIZE);
-          tmp=tmp.sprintf("joint between %d and %d",idom,ineig);
+          tmp=tmp.sprintf("joint between %d and %d",(int)idom,(int)ineig);
           charendnull(descjnt,tmp,MED_COMMENT_SIZE);
           err=MEDmeshCr(fidjoint,namejnt,3,3,MED_UNSTRUCTURED_MESH,descjnt,dtunit,MED_SORT_DTIT,MED_CARTESIAN,axisname,axisunit);
           if (err<0) std::cerr<<"Problem MEDmeshCr "<<namejnt<<std::endl;
@@ -2634,7 +2633,7 @@ bool ghs3dprl_mesh_wrap::idom_joints()
            //for (i=0; i<nbtria3neig ; i++) std::cout<<i+1<<" "<<
            //    arrayfaces[i*3]<<" "<<arrayfaces[i*3+1]<<" "<<arrayfaces[i*3+2]<<std::endl;
            err=MEDmeshElementConnectivityWr(fidjoint,namejnt,MED_NO_DT,MED_NO_IT,0.,
-                   MED_CELL,MED_TRIA3,MED_NODAL,MED_FULL_INTERLACE,nbtria3neig,arrayfaces);
+                   MED_CELL,MED_TRIA3,MED_NODAL,MED_FULL_INTERLACE,nbtria3neig,arrayfaces); // todo: arrayfaces may be used uninitialized
            if (err<0) std::cerr<<"Problem MEDmeshElementConnectivityWr for triangles connectivity "<<namejnt<<std::endl;
            //writing indices of faces triangles of joint
            arrayi=new med_int[nbtria3neig]; 
@@ -2646,7 +2645,7 @@ bool ghs3dprl_mesh_wrap::idom_joints()
          }
 
          delete[] arraynodes;
-         if (nbtria3neig>0) delete[] arrayfaces;
+         if (nbtria3neig>0) delete[] arrayfaces; // todo: arrayfaces may be used uninitialized
          delete[] inodes;
 
          //!masterfile.xml
@@ -2664,18 +2663,18 @@ bool ghs3dprl_mesh_wrap::idom_joints()
    xmlNewProp(joints_node, BAD_CAST "number", BAD_CAST i2a(nbjoints).c_str());
    xmlNewChild(joints_node, 0, BAD_CAST "id_neighbours", BAD_CAST sjoints.substr(1).c_str());
    
-   tmp=tmp.sprintf("NB%d VC",idom);
+   tmp=tmp.sprintf("NB%d VC",(int)idom);
    //qt3 xx=this->remove_key_mesh_wrap(QRegExp(tmp,true,true));
-   xx=this->remove_key_mesh_wrap(QRegExp(tmp,Qt::CaseSensitive,QRegExp::RegExp));
+   /*xx=*/this->remove_key_mesh_wrap(QRegExp(tmp,Qt::CaseSensitive,QRegExp::RegExp));
    //tmp=tmp.sprintf("MS%d NE*",idom);
    //qt3 xx=this->remove_key_mesh_wrap(QRegExp(tmp,true,true));
-   //xx=this->remove_key_mesh_wrap(QRegExp(tmp,Qt::CaseSensitive,QRegExp::RegExp));
-   tmp=tmp.sprintf("FC%d",idom);
+   ///*xx=*/this->remove_key_mesh_wrap(QRegExp(tmp,Qt::CaseSensitive,QRegExp::RegExp));
+   tmp=tmp.sprintf("FC%d",(int)idom);
    //qt3 xx=this->remove_key_mesh_wrap(QRegExp(tmp,true,true));
-   xx=this->remove_key_mesh_wrap(QRegExp(tmp,Qt::CaseSensitive,QRegExp::RegExp));
-   tmp=tmp.sprintf("GL%d *",idom);
+   /*xx=*/this->remove_key_mesh_wrap(QRegExp(tmp,Qt::CaseSensitive,QRegExp::RegExp));
+   tmp=tmp.sprintf("GL%d *",(int)idom);
    //qt3 xx=this->remove_key_mesh_wrap(QRegExp(tmp,true,true));
-   xx=this->remove_key_mesh_wrap(QRegExp(tmp,Qt::CaseSensitive,QRegExp::RegExp));
+   /*xx=*/this->remove_key_mesh_wrap(QRegExp(tmp,Qt::CaseSensitive,QRegExp::RegExp));
    return ok;
 }
 
@@ -2686,10 +2685,10 @@ bool ghs3dprl_mesh_wrap::idom_tetras()
    QString tmp,key1;
    CVWtab *tab1;
    med_int i,*arrayi;
-   int xx;
+   //int xx;
 
       //writing connectivity of tetrahedra by nodes
-      key1=key1.sprintf("NB%d EV",idom); //files.NoBoite Elements Vertices (tetra only)
+      key1=key1.sprintf("NB%d EV",(int)idom); //files.NoBoite Elements Vertices (tetra only)
       tab1=this->restore_key(key1); //tab1=this->mestab[key1];
       nbtetra4=tab1->size/4;
       this->nbtetr=nbtetra4; // for current idom
@@ -2714,7 +2713,7 @@ bool ghs3dprl_mesh_wrap::idom_tetras()
       {
         //writing tetrahedra global numbering
         //GLx EL=files.GLo ELements
-        key1=key1.sprintf("GL%d EL",idom);
+        key1=key1.sprintf("GL%d EL",(int)idom);
         tab1=this->restore_key(key1); //tab1=this->mestab[key1];
         if (!tab1) {
           //tmp=pathini+casename+tmp.sprintf(format.toLatin1().constData(),nbfilestot,idom)+".glo";
@@ -2743,9 +2742,9 @@ bool ghs3dprl_mesh_wrap::idom_tetras()
         if (err<0){std::cerr<<"Problem MEDmeshGlobalNumberWr tetrahedra"<<std::endl; return false;}
       }
 
-      tmp=tmp.sprintf("NB%d EV",idom);
+      tmp=tmp.sprintf("NB%d EV", (int)idom);
       //qt3 xx=this->remove_key_mesh_wrap(QRegExp(tmp,true,true));
-      xx=this->remove_key_mesh_wrap(QRegExp(tmp,Qt::CaseSensitive,QRegExp::RegExp));
+      /*xx=*/this->remove_key_mesh_wrap(QRegExp(tmp,Qt::CaseSensitive,QRegExp::RegExp));
    return ok;
 }
 
@@ -2756,9 +2755,9 @@ med_int ghs3dprl_mesh_wrap::create_families(med_idt fid, int sign)
 {
    med_int pas,ires;
    char nomfam[MED_NAME_SIZE+1];  //it.current()->name;
-   char attdes[MED_COMMENT_SIZE+1]="_NO_DESCRIPTION";
+   //char attdes[MED_COMMENT_SIZE+1]="_NO_DESCRIPTION";
    char *gro;
-   med_int i,attide=1,attval=1,natt=1,num,ngro;
+   med_int i,/*attide=1,*//*attval=1,*//*natt=1,*/num,ngro;
    
    if (sign>=0) pas=1; else pas=-1;
    ires=0;
@@ -2793,13 +2792,13 @@ med_int ghs3dprl_mesh_wrap::create_families(med_idt fid, int sign)
 
 med_int ghs3dprl_mesh_wrap::create_family_zero(med_idt fid, QString nameMesh)
 {
-   med_int pas,ires;
+   med_int /*pas,*/ires;
    ires=0;
    char nomfam[MED_NAME_SIZE+1]="FAMILLE_ZERO";  //it.current()->name;
-   char attdes[MED_COMMENT_SIZE+1]="_NO_DESCRIPTION";
+   //char attdes[MED_COMMENT_SIZE+1]="_NO_DESCRIPTION";
    
    char *gro;
-   med_int i,attide=1,attval=1,natt=1,num=0,ngro=0;
+   med_int /*attide=1,*//*attval=1,*//*natt=1,*/num=0,ngro=0;
    
    gro=new char[MED_LNAME_SIZE*ngro+2];
    if (verbose>3)std::cout<<"\ncreate_family_ZERO "<<nameMesh.toLatin1().constData()<<std::endl;
index 0e4ee3fcc66f0fdf09d7856ada34cbe965124f01..9a5ba563ed06a117089f6b9836e18275596398f3 100644 (file)
@@ -53,8 +53,8 @@ bool ghs3dprl_msg_parser::startDocument()
 }
 
 //************************************
-bool ghs3dprl_msg_parser::startElement(const QString &namespaceURI,
-                                       const QString &localName,
+bool ghs3dprl_msg_parser::startElement(const QString &/*namespaceURI*/,
+                                       const QString &/*localName*/,
                                        const QString &qName,
                                        const QXmlAttributes &attrs)
 {
@@ -172,8 +172,8 @@ bool ghs3dprl_msg_parser::startElement(const QString &namespaceURI,
 }
 
 //************************************
-bool ghs3dprl_msg_parser::endElement(const QString &namespaceURI,
-                                     const QString &localName,
+bool ghs3dprl_msg_parser::endElement(const QString &/*namespaceURI*/,
+                                     const QString &/*localName*/,
                                      const QString &qName)
 {
   indent.remove((uint)0,3);
index 26013ff36396119e5a4d0cba4fe8dd1a32fe0bdb..c97e2fa691c00da772a05c6b733c0708ee582428 100644 (file)
@@ -83,7 +83,7 @@ med_idt ouvre_fichier_MED(char *fichier,int verbose)
   /* Quelle version de MED est utilise par mdump ? */
   MEDlibraryNumVersion(&majeur,&mineur,&release);
   if (verbose>0)fprintf(stdout,"\nReading %s with MED V%d.%d.%d",
-                        fichier,majeur,mineur,release);
+                        fichier,(int)majeur,(int)mineur,(int)release);
 
   /* Ouverture du fichier MED en lecture seule */
   fid = MEDfileOpen(fichier,MED_ACC_RDONLY);
@@ -92,12 +92,12 @@ med_idt ouvre_fichier_MED(char *fichier,int verbose)
   MEDfileNumVersionRd(fid, &majeur, &mineur, &release);
   if (( majeur < 2 ) || ( majeur == 2 && mineur < 2 )) {
     fprintf(stderr,"File %s from MED V%d.%d.%d not assumed\n",
-                   fichier,majeur,mineur,release);
+                   fichier,(int)majeur,(int)mineur,(int)release);
     //" version est ant�ieure �la version 2.2";
     ret = MEDfileClose(fid);
     fid=0; }
   else {
-    if (verbose>0)fprintf(stdout,", file from MED V%d.%d.%d\n",majeur,mineur,release); }
+    if (verbose>0)fprintf(stdout,", file from MED V%d.%d.%d\n",(int)majeur,(int)mineur,(int)release); }
 
   return fid;
 }
@@ -107,7 +107,7 @@ bool ReadFileMED(QString nomfilemed,ghs3dprl_mesh_wrap *mymailw)
 {
    med_err ret;
    med_idt fid=0;
-   med_int i,j,sdim,mdim,nmaa,edim,majeur_lu,mineur_lu,release_lu,nprofils,nstep;
+   med_int i,j,sdim,mdim,nmaa,/*edim,*//*majeur_lu,*//*mineur_lu,*//*release_lu,*//*nprofils,*/nstep;
    med_mesh_type type_maillage;
    char dtunit[MED_SNAME_SIZE+1];
    char axisname[MED_SNAME_SIZE+1];
@@ -174,14 +174,14 @@ bool ReadFileMED(QString nomfilemed,ghs3dprl_mesh_wrap *mymailw)
    }
 
    //nombre d'objets MED : mailles, faces, aretes , ... 
-   med_int nmailles[MED_N_CELL_GEO],nbtria3;
-   med_int nfaces[MED_N_FACE_GEO];
-   med_int naretes[MED_N_EDGE_FIXED_GEO],nbseg2;
+   med_int /*nmailles[MED_N_CELL_GEO],*/nbtria3;
+   //med_int nfaces[MED_N_FACE_GEO];
+   med_int /*naretes[MED_N_EDGE_FIXED_GEO],*/nbseg2;
    //med_int nmailles[MED_NBR_GEOMETRIE_MAILLE],nbtria3;
    //med_int nfaces[MED_NBR_GEOMETRIE_FACE];
    //med_int naretes[MED_NBR_GEOMETRIE_ARETE],nbseg2;
    //polygones et polyedres familles equivalences joints
-   med_int nmpolygones,npolyedres,nfpolygones,nfam,nequ,njnt;
+   med_int nfam;
 
    //Combien de mailles, faces ou aretes pour chaque type geometrique ?
    /*for (i=0;i<MED_NBR_GEOMETRIE_MAILLE;i++){
@@ -216,7 +216,7 @@ std::vector<med_int> famdelete = std::vector<med_int>(nfam);
   char *gro;
   char nomfam[MED_NAME_SIZE+1];
   med_int numfam;
-  char str1[MED_COMMENT_SIZE+1];
+  //char str1[MED_COMMENT_SIZE+1];
   char str2[MED_LNAME_SIZE+1];
   med_err ret = 0;
   
@@ -252,7 +252,7 @@ std::vector<med_int> famdelete = std::vector<med_int>(nfam);
      if (i==nfam-1) std::cout<<std::endl;
     }
     QString sfam,sgro;
-    sfam=sfam.sprintf("%d",numfam);
+    sfam=sfam.sprintf("%d",(int)numfam);
     idelete=0;
     for (j=0;j<ngro;j++){
        strncpy(str2,gro+j*MED_LNAME_SIZE,MED_LNAME_SIZE);
@@ -347,7 +347,7 @@ if (mymailw->verbose>3){
      std::cout<<"\nVertices: no x y z family\n";
      for (i=0;i<nnoe*mdim;i=i+3) {
       fprintf(stdout,"%5d %13.5e %13.5e %13.5e %5d \n",
-          (i/3+1), coo[i], coo[i+1], coo[i+2], famnodesskin[i/3]);
+          (int)(i/3+1), coo[i], coo[i+1], coo[i+2], (int)famnodesskin[i/3]);
      } 
      std::cout<<std::endl;
    }
@@ -373,7 +373,7 @@ if (mymailw->verbose>3){
      std::cout<<"\nConnectivity MED_SEG2: no node1 node2 family\n";
      for (i=0;i<nbseg2*2;i=i+2) {
       fprintf(stdout,"%5d %5d %5d %5d \n",
-          (i/2+1), conn2[i], conn2[i+1], famseg2skin[i/2]);
+          (int)(i/2+1), (int)conn2[i], (int)conn2[i+1], (int)famseg2skin[i/2]);
      } 
      std::cout<<std::endl;
    }
@@ -399,7 +399,7 @@ if (mymailw->verbose>3){
      std::cout<<"\nConnectivity MED_TRIA3: no node1 node2 node3 family\n";
      for (i=0;i<nbtria3*3;i=i+3) {
       fprintf(stdout,"%5d %5d %5d %5d %5d \n",
-          (i/3+1), conn3[i], conn3[i+1], conn3[i+2], famtria3skin[i/3]);
+             (int)(i/3+1), (int)conn3[i], (int)conn3[i+1], (int)conn3[i+2], (int)famtria3skin[i/3]);
      } 
      std::cout<<std::endl;
    }
@@ -432,33 +432,33 @@ if (mymailw->verbose>3){
   }
    //stocks data for future use 
    CVWtab *montab;
-   bool ok;
+   //bool ok;
 
    montab=new CVWtab(nnoe*mdim,coo);
    tmp="SKIN_VERTICES_COORDINATES";
-   ok=mymailw->insert_key(tmp,montab);
+   /*ok=*/mymailw->insert_key(tmp,montab);
 
    montab=new CVWtab(nnoe,famnodesskin);
    tmp="SKIN_VERTICES_FAMILIES";
-   ok=mymailw->insert_key(tmp,montab);
+   /*ok=*/mymailw->insert_key(tmp,montab);
    
    montab=new CVWtab(nbseg2*2,conn2);
    tmp="SKIN_SEG2_CONNECTIVITIES";
-   ok=mymailw->insert_key(tmp,montab);
+   /*ok=*/mymailw->insert_key(tmp,montab);
 
    montab=new CVWtab(nbtria3,famseg2skin);
    tmp="SKIN_SEG2_FAMILIES";
-   ok=mymailw->insert_key(tmp,montab);
+   /*ok=*/mymailw->insert_key(tmp,montab);
 
    montab=new CVWtab(nbtria3*3,conn3);
    tmp="SKIN_TRIA3_CONNECTIVITIES";
-   ok=mymailw->insert_key(tmp,montab);
+   /*ok=*/mymailw->insert_key(tmp,montab);
 
    montab=new CVWtab(nbtria3,famtria3skin);
    tmp="SKIN_TRIA3_FAMILIES";
-   ok=mymailw->insert_key(tmp,montab);
+   /*ok=*/mymailw->insert_key(tmp,montab);
 
-   //if (mymailw->verbose>6) ok=mymailw->list_keys_mesh_wrap();
+   //if (mymailw->verbose>6) /*ok=*/mymailw->list_keys_mesh_wrap();
 
    ret = MEDfileClose(fid);
    if (ret < 0){
@@ -468,8 +468,8 @@ if (mymailw->verbose>3){
    return true;
 }
 
-/*
 //************************************
+/*
 string char2string(char *d, int lg)
 {
    string fin;
@@ -478,8 +478,10 @@ string char2string(char *d, int lg)
    }
    return fin;
 }
+*/
 
 //************************************
+/*
 bool string2int(const string &s, int *v)
 //string s=argv[1] ; int ii;
 //ok=string2int(s,&ii);
@@ -490,8 +492,10 @@ bool string2int(const string &s, int *v)
    int v2;
    if (ss >> *v >> v2) return true; else {*v=0 ;return false;}
 }
+*/
 
 //************************************
+/*
 bool string2float(const string &s, float *v)
 //float ff;
 //ok=string2float(s,&ff);
@@ -502,16 +506,20 @@ bool string2float(const string &s, float *v)
    float v2;
    if (ss >> *v >> v2) return true; else {*v=0. ;return false;}
 }
+*/
 
 //************************************
+/*
 string int2string(const int &v)
 {
    ostringstream ss;
    ss<<v;
    return ss.str();
 }
+*/
 
 //************************************
+/*
 string float2string(const float &v)
 {
    ostringstream ss;
@@ -684,7 +692,7 @@ int main(int argc, char *argv[])
       path=casenamemed.section('/',-n-1,-2)+"/";
    else
       path="./";
-      casenamemed=casenamemed.section('/',-1);
+   casenamemed=casenamemed.section('/',-1);
    if (casenamemed.length()>20){
       std::cerr<<"--medname truncated (no more 20 characters)"<<std::endl;
       casenamemed.truncate(20);
@@ -695,7 +703,7 @@ int main(int argc, char *argv[])
       pathini=casename.section('/',-n-1,-2)+"/";
    else
       pathini="./";
-      casename=casename.section('/',-1);
+   casename=casename.section('/',-1);
    if (casename.length()>20){
       std::cerr<<"--casename truncated (no more 20 characters)"<<std::endl;
       casename.truncate(20);
index 5a47586b43b0a47a636cb7cc9c541ca6a3ee5539..4af175946382e6a05c7c0b819e34a713c37d27e4 100644 (file)
@@ -83,7 +83,7 @@ med_idt ouvre_fichier_MED(char *fichier,int verbose)
   /* Quelle version de MED est utilise par mdump ? */
   MEDlibraryNumVersion(&majeur,&mineur,&release);
   if (verbose>0)fprintf(stdout,"\nReading %s with MED V%d.%d.%d",
-                        fichier,majeur,mineur,release);
+                        fichier,(int)majeur,(int)mineur,(int)release);
 
   /* Ouverture du fichier MED en lecture seule */
   fid = MEDfileOpen(fichier,MED_ACC_RDONLY);
@@ -92,12 +92,12 @@ med_idt ouvre_fichier_MED(char *fichier,int verbose)
   MEDfileNumVersionRd(fid, &majeur, &mineur, &release);
   if (( majeur < 2 ) || ( majeur == 2 && mineur < 2 )) {
     fprintf(stderr,"File %s from MED V%d.%d.%d not assumed\n",
-                   fichier,majeur,mineur,release);
+                   fichier,(int)majeur,(int)mineur,(int)release);
     //" version est ant�ieure �la version 2.2";
     ret = MEDfileClose(fid);
     fid=0; }
   else {
-    if (verbose>0)fprintf(stdout,", file from MED V%d.%d.%d\n",majeur,mineur,release); }
+    if (verbose>0)fprintf(stdout,", file from MED V%d.%d.%d\n",(int)majeur,(int)mineur,(int)release); }
 
   return fid;
 }
@@ -252,7 +252,7 @@ std::vector<med_int> famdelete = std::vector<med_int>(nfam);
      if (i==nfam-1) std::cout<<std::endl;
     }
     QString sfam,sgro;
-    sfam=sfam.sprintf("%d",numfam);
+    sfam=sfam.sprintf("%d",(int)numfam);
     idelete=0;
     for (j=0;j<ngro;j++){
        strncpy(str2,gro+j*MED_LNAME_SIZE,MED_LNAME_SIZE);
@@ -347,7 +347,7 @@ if (mymailw->verbose>3){
      std::cout<<"\nVertices: no x y z family\n";
      for (i=0;i<nnoe*mdim;i=i+3) {
       fprintf(stdout,"%5d %13.5e %13.5e %13.5e %5d \n",
-          (i/3+1), coo[i], coo[i+1], coo[i+2], famnodesskin[i/3]);
+             (int)(i/3+1), coo[i], coo[i+1], coo[i+2], (int)famnodesskin[i/3]);
      } 
      std::cout<<std::endl;
    }
@@ -373,7 +373,7 @@ if (mymailw->verbose>3){
      std::cout<<"\nConnectivity MED_SEG2: no node1 node2 family\n";
      for (i=0;i<nbseg2*2;i=i+2) {
       fprintf(stdout,"%5d %5d %5d %5d \n",
-          (i/2+1), conn2[i], conn2[i+1], famseg2skin[i/2]);
+             (int)(i/2+1), (int)conn2[i], (int)conn2[i+1], (int)famseg2skin[i/2]);
      } 
      std::cout<<std::endl;
    }
@@ -399,7 +399,7 @@ if (mymailw->verbose>3){
      std::cout<<"\nConnectivity MED_TRIA3: no node1 node2 node3 family\n";
      for (i=0;i<nbtria3*3;i=i+3) {
       fprintf(stdout,"%5d %5d %5d %5d %5d \n",
-          (i/3+1), conn3[i], conn3[i+1], conn3[i+2], famtria3skin[i/3]);
+             (int)(i/3+1), (int)conn3[i], (int)conn3[i+1], (int)conn3[i+2], (int)famtria3skin[i/3]);
      } 
      std::cout<<std::endl;
    }
@@ -432,33 +432,33 @@ if (mymailw->verbose>3){
   }
    //stocks data for future use 
    CVWtab *montab;
-   bool ok;
+   //bool ok;  // todo: unused
 
    montab=new CVWtab(nnoe*mdim,coo);
    tmp="SKIN_VERTICES_COORDINATES";
-   ok=mymailw->insert_key(tmp,montab);
+   /*ok=*/mymailw->insert_key(tmp,montab);
 
    montab=new CVWtab(nnoe,famnodesskin);
    tmp="SKIN_VERTICES_FAMILIES";
-   ok=mymailw->insert_key(tmp,montab);
+   /*ok=*/mymailw->insert_key(tmp,montab);
    
    montab=new CVWtab(nbseg2*2,conn2);
    tmp="SKIN_SEG2_CONNECTIVITIES";
-   ok=mymailw->insert_key(tmp,montab);
+   /*ok=*/mymailw->insert_key(tmp,montab);
 
    montab=new CVWtab(nbtria3,famseg2skin);
    tmp="SKIN_SEG2_FAMILIES";
-   ok=mymailw->insert_key(tmp,montab);
+   /*ok=*/mymailw->insert_key(tmp,montab);
 
    montab=new CVWtab(nbtria3*3,conn3);
    tmp="SKIN_TRIA3_CONNECTIVITIES";
-   ok=mymailw->insert_key(tmp,montab);
+   /*ok=*/mymailw->insert_key(tmp,montab);
 
    montab=new CVWtab(nbtria3,famtria3skin);
    tmp="SKIN_TRIA3_FAMILIES";
-   ok=mymailw->insert_key(tmp,montab);
+   /*ok=*/mymailw->insert_key(tmp,montab);
 
-   //if (mymailw->verbose>6) ok=mymailw->list_keys_mesh_wrap();
+   //if (mymailw->verbose>6) /*ok=*/mymailw->list_keys_mesh_wrap();
 
    ret = MEDfileClose(fid);
    if (ret < 0){
@@ -839,7 +839,7 @@ int main(int argc, char *argv[])
       path=casenamemed.section('/',-n-1,-2)+"/";
    else
       path="./";
-      casenamemed=casenamemed.section('/',-1);
+   casenamemed=casenamemed.section('/',-1);
    if (casenamemed.length()>20){
       std::cerr<<"--medname truncated (no more 20 characters)"<<std::endl;
       casenamemed.truncate(20);
@@ -850,7 +850,7 @@ int main(int argc, char *argv[])
       pathini=casename.section('/',-n-1,-2)+"/";
    else
       pathini="./";
-      casename=casename.section('/',-1);
+   casename=casename.section('/',-1);
    if (casename.length()>20){
       std::cerr<<"--casename truncated (no more 20 characters)"<<std::endl;
       casename.truncate(20);