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:
parent
dac7ab987a
commit
822d4c61e1
@ -182,25 +182,30 @@ public:
|
|||||||
|
|
||||||
switch (localId)
|
switch (localId)
|
||||||
{
|
{
|
||||||
case 2:
|
|
||||||
globalId += 1;
|
|
||||||
case 3:
|
|
||||||
globalId += this->Dimension;
|
|
||||||
case 1:
|
|
||||||
globalId += 1;
|
|
||||||
case 0:
|
case 0:
|
||||||
break;
|
break;
|
||||||
case 6:
|
case 1:
|
||||||
globalId += 1;
|
|
||||||
case 7:
|
|
||||||
globalId += this->Dimension;
|
|
||||||
case 5:
|
|
||||||
globalId += 1;
|
globalId += 1;
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
globalId += this->Dimension + 2;
|
||||||
|
break;
|
||||||
|
case 3:
|
||||||
|
globalId += this->Dimension + 1;
|
||||||
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
globalId += this->DimPlus1Squared;
|
globalId += this->DimPlus1Squared;
|
||||||
break;
|
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;
|
return globalId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user