Marching Cubes test doesn't abuse fall through case statements

The fall through case statement was causing numerous warnings
with gcc 7.
This commit is contained in:
Robert Maynard 2018-05-01 17:35:54 -04:00
parent dac7ab987a
commit 822d4c61e1

@ -182,25 +182,30 @@ public:
switch (localId)
{
case 2:
globalId += 1;
case 3:
globalId += this->Dimension;
case 1:
globalId += 1;
case 0:
break;
case 6:
globalId += 1;
case 7:
globalId += this->Dimension;
case 5:
case 1:
globalId += 1;
break;
case 2:
globalId += this->Dimension + 2;
break;
case 3:
globalId += this->Dimension + 1;
break;
case 4:
globalId += this->DimPlus1Squared;
break;
case 5:
globalId += this->DimPlus1Squared + 1;
break;
case 6:
globalId += this->Dimension + this->DimPlus1Squared + 2;
break;
case 7:
globalId += this->Dimension + this->DimPlus1Squared + 1;
break;
}
return globalId;
}