Commit 1125e4c7 authored by Sean McBride's avatar Sean McBride
Browse files

moved some declarations together with initial assignments.

Doesn't fix any warning or problem, just saw these while I was addressing some nearby clang analyzer warnings.

Change-Id: Ic4638fb4b865a52cdca52611039a5fde9cb5be8f
parent 64dda5c7
......@@ -505,7 +505,6 @@ void vtkImageMarchingCubesHandleCube(vtkImageMarchingCubes *self,
int cubeIndex, ii;
vtkIdType pointIds[3];
vtkMarchingCubesTriangleCases *triCase, *triCases;
EDGE_LIST *edge;
vtkInformation *inInfo = self->GetExecutive()->GetInputInformation(0, 0);
......@@ -554,7 +553,7 @@ void vtkImageMarchingCubesHandleCube(vtkImageMarchingCubes *self,
{
// Get edges.
triCase = triCases + cubeIndex;
edge = triCase->edges;
EDGE_LIST *edge = triCase->edges;
// loop over triangles
while(*edge > -1)
{
......
......@@ -268,7 +268,6 @@ int vtkIntersectionPolyDataFilter::Impl
vtkCellData *inCD = input->GetCellData();
vtkCellData *outCD = output->GetCellData();
vtkIdType numCells = input->GetNumberOfCells();
vtkIdType newId;
vtkIdType cellIdX = 0;
//
......@@ -330,7 +329,7 @@ int vtkIntersectionPolyDataFilter::Impl
if ( input->GetPolys()->GetNumberOfCells() > 0 )
{
vtkCellArray *cells = input->GetPolys();
newId = output->GetNumberOfCells();
vtkIdType newId = output->GetNumberOfCells();
vtkSmartPointer< vtkCellArray > newPolys =
vtkSmartPointer< vtkCellArray >::New();
......
......@@ -449,26 +449,22 @@ int vtkStructuredGridGeometryFilter::RequestUpdateExtent(
vtkInformation *inInfo = inputVector[0]->GetInformationObject(0);
vtkInformation *outInfo = outputVector->GetInformationObject(0);
int piece, numPieces;
int *wholeExt;
int ext[6];
vtkExtentTranslator *translator;
translator = vtkExtentTranslator::SafeDownCast(
vtkExtentTranslator *translator = vtkExtentTranslator::SafeDownCast(
inInfo->Get(vtkStreamingDemandDrivenPipeline::EXTENT_TRANSLATOR()));
wholeExt =
int *wholeExt =
inInfo->Get(vtkStreamingDemandDrivenPipeline::WHOLE_EXTENT());
// Copy whole extent only if present
int ext[6];
if ( wholeExt )
{
memcpy( ext, wholeExt, 6 * sizeof( int ) );
}
// Get request from output information
piece =
int piece =
outInfo->Get(vtkStreamingDemandDrivenPipeline::UPDATE_PIECE_NUMBER());
numPieces =
int numPieces =
outInfo->Get(vtkStreamingDemandDrivenPipeline::UPDATE_NUMBER_OF_PIECES());
// get the extent associated with the piece.
......
Supports Markdown
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