Commit 37afe252 authored by George Zagaris's avatar George Zagaris
Browse files

COMP: Fix a few compiler warnings

Change-Id: I840a8add196181be90b79b6f53ab3683209149e1
parent 0769d8f7
......@@ -132,7 +132,8 @@ void vtkExtractStructuredGridHelper::Initialize(
// Update output whole extent
this->OutputWholeExtent[2*dim] = 0;
this->OutputWholeExtent[2*dim+1] = this->IndexMap->Mapping[dim].size()-1;
this->OutputWholeExtent[2*dim+1] =
static_cast<int>( this->IndexMap->Mapping[dim].size()-1 );
} // END for all dimensions
}
......@@ -185,7 +186,6 @@ void vtkExtractStructuredGridHelper::ComputeBeginAndEnd(
// output data.
for(int dim=0; dim < 3; ++dim)
{
int nIdx = this->GetSize( dim );
for(int idx=0; idx < this->GetSize(dim); ++idx)
{
if( this->GetMapping(dim,idx) >= uExt[2*dim] &&
......
......@@ -2,6 +2,6 @@ vtk_add_test_cxx(${vtk-module}CxxTests tests
TestConvertSelection.cxx,NO_VALID
TestExtractSelection.cxx
TestExtraction.cxx
TestExtractRectilinearGrid.cxx
TestExtractRectilinearGrid.cxx,NO_VALID,NO_DATA
)
vtk_test_cxx_executable(${vtk-module}CxxTests tests)
......@@ -151,6 +151,10 @@ int TestExtractRectilinearGrid( int argc, char* argv[])
{
int rc = 0;
// silence compiler warnings
static_cast<void>(argc);
static_cast<void>(argv);
int ext[6] = {0,49,0,49,0,0};
vtkRectilinearGrid* grid = vtkRectilinearGrid::New();
GenerateGrid( grid, ext );
......
......@@ -108,11 +108,11 @@ void vtkPExtractArraysOverTime::PostExecute(
// composite-data meta-data yet.
vtkMultiProcessStream stream;
vtkCompositeDataIterator* iter = output->NewIterator();
for (iter->InitTraversal(); !iter->IsDoneWithTraversal();
for (iter->InitTraversal(); iter->IsDoneWithTraversal() != 1;
iter->GoToNextItem())
{
stream << iter->GetCurrentFlatIndex()
<< iter->GetCurrentMetaData()->Get(vtkCompositeDataSet::NAME());
<< std::string(iter->GetCurrentMetaData()->Get(vtkCompositeDataSet::NAME()));
}
iter->Delete();
this->Controller->Send(stream, 0, EXCHANGE_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