1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-19 13:40:49 +03:00

0024162: Eliminate CLang compiler warning

Got rid from most cases of appearance '-Wunused-private-field' warning
This commit is contained in:
omy
2013-09-11 15:49:07 +04:00
committed by abv
parent eafb234bf1
commit 258ff83bb6
77 changed files with 151 additions and 334 deletions

View File

@@ -113,7 +113,16 @@ static Standard_Integer FillIntervalBounds(Standard_Real A,
for(; i <= iEnd; i++){
Standard_Real kn = Knots(i);
if(A < kn)
if(kn < B) VA(j++) = VB(k++) = kn; else break;
{
if(kn < B)
{
VA(j++) = VB(k++) = kn;
}
else
{
break;
}
}
}
VB(k) = B;
return k;

View File

@@ -82,7 +82,16 @@ static Standard_Integer FillIntervalBounds(Standard_Real A, Standard_Real B, con
for(; i <= iEnd; i++){
Standard_Real kn = Knots(i);
if(A < kn)
if(kn < B) VA(j++) = VB(k++) = kn; else break;
{
if(kn < B)
{
VA(j++) = VB(k++) = kn;
}
else
{
break;
}
}
}
VB(k) = B;
return k;