mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0024180: Eliminate CLang / GCC compiler warning -Wswitch
Eliminated warnings -Wswitch shown by gcc Eliminated two new warnings about wrong initialization order Eliminated warnings about unused functions. A few more ICC warnings (type conversions) fixed
This commit is contained in:
@@ -345,6 +345,8 @@ Standard_Boolean TopOpeBRep_LineInter::IsPeriodic() const
|
||||
{
|
||||
case TopOpeBRep_CIRCLE :
|
||||
case TopOpeBRep_ELLIPSE : return Standard_True;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return Standard_False;
|
||||
}
|
||||
@@ -410,6 +412,8 @@ Standard_Integer TopOpeBRep_LineInter::NbWPoint() const
|
||||
switch (myTypeLineCurve)
|
||||
{
|
||||
case TopOpeBRep_WALKING : return myILW->NbPnts();
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user