mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +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:
@@ -48,6 +48,8 @@ Standard_Integer Contap_HCurve2dToolGen::NbSamples (const CurveGen& C,
|
||||
nbs/= U1-U0;
|
||||
if(nbs < 2.0) nbs = 2.;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
if (nbs>50.)
|
||||
nbs = 50.;
|
||||
|
Reference in New Issue
Block a user