1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00

0024169: Eliminate CLang compiler warning -Wunused-value

Got rid of warning -Wunused-value
This commit is contained in:
omy 2013-09-11 17:18:49 +04:00 committed by abv
parent 258ff83bb6
commit b6abaec0c8
4 changed files with 6 additions and 6 deletions

View File

@ -873,8 +873,9 @@ Standard_Integer Adaptor3d_CurveOnSurface::NbIntervals
// value into myIntervals which will be equal first value.
myIntervals = new TColStd_HArray1OfReal(1,nbpoint);
i=0;
for (It.Initialize(tmpIntervals->Set());It.More();It.Next(),i)
{ i++;
for (It.Initialize(tmpIntervals->Set());It.More();It.Next())
{
++i;
myIntervals->SetValue(i,It.Value());
}
if( i==1 )

View File

@ -245,8 +245,7 @@ void AdvApp2Var_Iso::MakeApprox(const AdvApp2Var_Context& Conditions,
//#ifdef DEB
//Standard_Real *ERRMOY =
//#endif
(Standard_Real *) &HERRMOY->ChangeArray2()
(HERRMOY ->LowerRow(),HERRMOY ->LowerCol());
// (Standard_Real *) &HERRMOY->ChangeArray2()(HERRMOY ->LowerRow(),HERRMOY ->LowerCol());
Standard_Real *EMYAPP = new Standard_Real[NBSESP];
//
// the approximations

View File

@ -394,7 +394,7 @@ void GeomFill_GuideTrihedronAC::SetInterval(const Standard_Real First,
ABiNormal.SetCoord(0.,0.,0.);
gp_Vec T, N, B;
for (ii=1, T; ii<=20; ii++) {
for (ii=1; ii<=20; ii++) {
t = myCurve->FirstParameter() +(ii-1)*Delta;
D0(t, T, N, B);
ATangent +=T;

View File

@ -552,7 +552,7 @@ void GeomFill_GuideTrihedronPlan::SetInterval(const Standard_Real First,
ABiNormal.SetCoord(0.,0.,0.);
gp_Vec T, N, B;
for (ii=1, T; ii<=20; ii++) {
for (ii=1; ii<=20; ii++) {
t = myCurve->FirstParameter() +(ii-1)*Delta;
D0(t, T, N, B);
ATangent +=T;