0022922: Clean up warnings on uninitialized / unused variables
[occt.git] / src / Extrema / Extrema_ExtCS.cxx
index cba4ff9..36974f8 100755 (executable)
@@ -126,8 +126,7 @@ void Extrema_ExtCS::Perform(const Adaptor3d_Curve& C,
          if(Precision::IsInfinite(Abs(cfirst)) || Precision::IsInfinite(Abs(clast))) {
 
            Bnd_Box aSurfBox;
-           BndLib_AddSurface anAddSurf;
-           anAddSurf.Add(*myS, ufirst, ulast, vfirst, vlast, Precision::Confusion(), aSurfBox);
+      BndLib_AddSurface::Add(*myS, ufirst, ulast, vfirst, vlast, Precision::Confusion(), aSurfBox);
            Standard_Real xmin, ymin, zmin, xmax, ymax, zmax;
            aSurfBox.Get(xmin, ymin, zmin, xmax, ymax, zmax);
            Standard_Real tmin = Precision::Infinite(), tmax = -tmin;
@@ -297,7 +296,7 @@ void Extrema_ExtCS::Perform(const Adaptor3d_Curve& C,
        PS.Parameter(U, V);
 
        if((myStype == GeomAbs_Sphere) || (myStype == GeomAbs_Cylinder)) {
-         U = ElCLib::InPeriod(U, myuinf, myuinf+2.*PI);
+         U = ElCLib::InPeriod(U, myuinf, myuinf+2.*M_PI);
        }
 
        if ((myuinf-U) <= mytolS && (U-myusup) <= mytolS &&