From: ageay Date: Fri, 10 Feb 2012 11:24:27 +0000 (+0000) Subject: Warning hunting in g++ 4.6 X-Git-Tag: V6_main_FINAL~874 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4c00fd738f50fb4b7fcbb8220fef008a77f76cc4;p=tools%2Fmedcoupling.git Warning hunting in g++ 4.6 --- diff --git a/src/MEDLoader/MEDLoader.cxx b/src/MEDLoader/MEDLoader.cxx index 662b5d8bf..72d588b86 100644 --- a/src/MEDLoader/MEDLoader.cxx +++ b/src/MEDLoader/MEDLoader.cxx @@ -818,7 +818,6 @@ std::vector MEDLoader::GetNodeFieldNamesOnMesh(const char *fileName MEDfieldInfo(fid,i+1,nomcha,maa_ass,&localmesh,&typcha,comp,unit,dt_unit,&nbPdt); std::string curFieldName=MEDLoaderBase::buildStringFromFortran(nomcha,MED_NAME_SIZE+1); std::string curMeshName=MEDLoaderBase::buildStringFromFortran(maa_ass,MED_NAME_SIZE+1); - bool found=false; if(nbPdt>0) { int profilesize,nbi; @@ -827,7 +826,6 @@ std::vector MEDLoader::GetNodeFieldNamesOnMesh(const char *fileName pflname,&profilesize,locname,&nbi); if(curMeshName==meshName && nbOfVal>0) { - found=true; ret.push_back(curFieldName); } }