Commit b0a644f5 authored by BRAMAS Berenger's avatar BRAMAS Berenger

remove warning

parent a0998d9d
......@@ -130,18 +130,11 @@ public:
* @param the particle to fill
*/
void fillParticle(FPoint*const inParticlePositions, FReal*const inPhysicalValue){
if(this->file){
float x,y,z,data;
const int nbReadElements = fscanf(this->file,"%f %f %f %f",&x,&y,&z,&data);
if(nbReadElements == 4){
inParticlePositions->setPosition(x,y,z);
(*inPhysicalValue) = data;
}
else{
fclose(this->file);
this->file = NULL;
}
}
int unusedReturn = fscanf(this->file,"%f %f %f %f",&x,&y,&z,&data);
unusedReturn += unusedReturn; // just to remove warning
inParticlePositions->setPosition(x,y,z);
(*inPhysicalValue) = data;
}
};
......
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