1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-18 14:27:39 +03:00

0032341: Coding Rules - eliminate GCC11 compiler warnings -Wmaybe-uninitialized

This commit is contained in:
kgv
2021-04-29 21:01:17 +03:00
parent 36fbf05b15
commit b04cd5d587
13 changed files with 84 additions and 86 deletions

View File

@@ -2814,16 +2814,15 @@ void BSplCLib::Trimming(const Standard_Integer Degree,
TColStd_Array1OfReal& NewPoles)
{
Standard_Integer i, nbpoles=0, nbknots=0;
Standard_Real kk[2];
Standard_Integer mm[2];
Standard_Real kk[2] = { U1, U2 };
Standard_Integer mm[2] = { Degree, Degree };
TColStd_Array1OfReal K( kk[0], 1, 2 );
TColStd_Array1OfInteger M( mm[0], 1, 2 );
K(1) = U1; K(2) = U2;
mm[0] = mm[1] = Degree;
if (!PrepareInsertKnots( Degree, Periodic, Knots, Mults, K, &M,
nbpoles, nbknots, Epsilon( U1), 0))
{
throw Standard_OutOfRange();
}
TColStd_Array1OfReal TempPoles(1, nbpoles*Dimension);
TColStd_Array1OfReal TempKnots(1, nbknots);