Commit 02666b57 authored by David Gobbi's avatar David Gobbi Committed by Code Review

Merge topic 'unreachable-return' into master

d80ccfb6 Fix unreachable code warning in otherCellTypes.cxx.
parents 2e262725 d80ccfb6
......@@ -77,15 +77,10 @@ int otherCellTypes(int, char *[])
TestOCT();
// Might need to be ajusted if vtkCellTypes changes
if( VTK_NUMBER_OF_CELL_TYPES <= VTK_HIGHER_ORDER_HEXAHEDRON)
{
return 1;
}
bool fail1 = (VTK_NUMBER_OF_CELL_TYPES <= VTK_HIGHER_ORDER_HEXAHEDRON);
// vtkUnstructuredGrid uses uchar to store cellId
if( VTK_NUMBER_OF_CELL_TYPES > 255 )
{
return 1;
}
bool fail2 = (VTK_NUMBER_OF_CELL_TYPES > 255);
return 0;
return (fail1 || fail2);
}
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