[Insight-developers] clang warning in itk::Mesh
Arnaud Gelas
arnaud_gelas at hms.harvard.edu
Thu Sep 15 07:38:27 EDT 2011
Hi all,
I am looking at the following clang warning:
/Users/builder/kitware/ITK/Modules/Core/Mesh/include/itkMesh.hxx:
509:37: warning: unused parameter 'cellId' [-Wunused-parameter]
::GetCellBoundingBox(CellIdentifier cellId, BoundingBoxPointer bbox)
Here is the corresponding code:
503 /**
504 * Get the bounding box of the cell with the given identifier.
505 */
506 template< typename TPixelType, unsigned int VDimension, typename
TMeshTrait s >
507 typename Mesh< TPixelType, VDimension, TMeshTraits
>::BoundingBoxPointer
508 Mesh< TPixelType, VDimension, TMeshTraits >
509 ::GetCellBoundingBox(CellIdentifier cellId, BoundingBoxPointer
bbox)
510 {
511 bbox->SetPoints( this->GetPoints() );
512 return bbox;
513 }
The documentation and the method name does not match at all the
implementation...
I can fix the warning or fix the implementation for this warning, but
it'd definitively affect code which make use of this method...
Is it used ?
Recommendations ?
Thanks,
Arnaud
More information about the Insight-developers
mailing list