Commit b0a644f5 authored by BRAMAS Berenger's avatar BRAMAS Berenger

remove warning

parent a0998d9d
...@@ -130,18 +130,11 @@ public: ...@@ -130,18 +130,11 @@ public:
* @param the particle to fill * @param the particle to fill
*/ */
void fillParticle(FPoint*const inParticlePositions, FReal*const inPhysicalValue){ void fillParticle(FPoint*const inParticlePositions, FReal*const inPhysicalValue){
if(this->file){
float x,y,z,data; float x,y,z,data;
const int nbReadElements = fscanf(this->file,"%f %f %f %f",&x,&y,&z,&data); int unusedReturn = fscanf(this->file,"%f %f %f %f",&x,&y,&z,&data);
if(nbReadElements == 4){ unusedReturn += unusedReturn; // just to remove warning
inParticlePositions->setPosition(x,y,z); inParticlePositions->setPosition(x,y,z);
(*inPhysicalValue) = data; (*inPhysicalValue) = data;
}
else{
fclose(this->file);
this->file = NULL;
}
}
} }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment