[vtk-developers] gcc warnings about empty if/while bodies

Sean McBride sean at rogue-research.com
Tue Jun 17 13:30:17 EDT 2008


On 6/17/08 8:55 AM, John Biddiscombe said:

>> Highly suspicious.  Can anyone say for sure if that ; should be there?
>it _must_ be a mistake. the reference to (*miter).second.second; would 
>be utterly meaningless otherwise - as would the whole function!

Agreed.  I've committed it.  Here's another, in
vtkOpenFOAMReader::GetCellZoneMesh()

 for(l = 0; l < (int)cellPoints.size(); l++);
   {
   if(cellPoints[l] == this->FacePoints->value[this->FacesOfCell->
                       value[cellZone[i]][j].faceIndex][k])
     {
     foundDup = true;
     }
   }

Anyone know this code?

-- 
____________________________________________________________
Sean McBride, B. Eng                 sean at rogue-research.com
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada




More information about the vtk-developers mailing list