0024169: Eliminate CLang compiler warning -Wunused-value
authoromy <omy@opencascade.com>
Wed, 11 Sep 2013 13:18:49 +0000 (17:18 +0400)
committerabv <abv@opencascade.com>
Wed, 18 Sep 2013 06:29:29 +0000 (10:29 +0400)
Got rid of warning -Wunused-value

src/Adaptor3d/Adaptor3d_CurveOnSurface.cxx
src/AdvApp2Var/AdvApp2Var_Iso.cxx
src/GeomFill/GeomFill_GuideTrihedronAC.cxx
src/GeomFill/GeomFill_GuideTrihedronPlan.cxx

index 84013ac..7dfb692 100755 (executable)
@@ -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 )
index dbf6eee..ae425c8 100755 (executable)
@@ -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
index a18f88b..536f496 100755 (executable)
@@ -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;
index 888b5c6..f348e3a 100755 (executable)
@@ -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;