Commit ecd3ae58 authored by George Zagaris's avatar George Zagaris
Browse files

COMP: Fix AMRBaseReader compiler warnings

Fix issue with unused vars when compiled in Release. In
debug this vars were used in asserts. Encapsulated code
in #ifndef NDEBUG to only execute when compiled in debug
mode. Also, commented out unreachable code to make windows
compiler happy.

Change-Id: Ic2d4a18f28826ae234826a7585db9fe3daf37aeb
parent b23f4c28
......@@ -397,8 +397,8 @@ vtkUniformGrid* vtkAMRBaseReader::GetAMRBlock( const int blockIdx )
return( gridPtr );
}
assert( "Code should never reach here!" && (false) );
return NULL;
// assert( "Code should never reach here!" && (false) );
// return NULL;
}
//------------------------------------------------------------------------------
......@@ -466,6 +466,7 @@ void vtkAMRBaseReader::LoadRequestedBlocks( vtkOverlappingAMR *output )
assert( "pre: NumLevels in output should be <= to NumLevels in metadata" &&
output->GetNumberOfLevels() <= this->Metadata->GetNumberOfLevels() );
#ifndef NDEBUG
unsigned int levelIdx = 0;
for( ; levelIdx < output->GetNumberOfLevels(); ++levelIdx )
{
......@@ -474,6 +475,7 @@ void vtkAMRBaseReader::LoadRequestedBlocks( vtkOverlappingAMR *output )
assert( "pre: NumData at level must correspond to the metadata" &&
N <= Nexpected );
}
#endif
}
......
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