mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0022922: Clean up warnings on uninitialized / unused variables
This commit is contained in:
committed by
bugmaster
parent
25289ec1e1
commit
6e6cd5d949
@@ -757,10 +757,7 @@ static Standard_Integer gcarc (Draw_Interpretor& di,Standard_Integer n, const ch
|
||||
if (DrawTrSurf::GetPoint(a[5], P3)) {
|
||||
// if (DrawTrSurf::GetPoint(a[6], P4)) {
|
||||
if (n>6) {
|
||||
#ifdef DEB
|
||||
Standard_Boolean ip4 =
|
||||
#endif
|
||||
DrawTrSurf::GetPoint(a[6], P4);
|
||||
DrawTrSurf::GetPoint(a[6], P4);
|
||||
gp_Vec V1 = gp_Vec(P2,P3);
|
||||
Handle(Geom_Curve)thearc = GC_MakeArcOfCircle(P1,V1,P4).Value();
|
||||
DrawTrSurf::Set(a[1], thearc);
|
||||
|
@@ -831,8 +831,7 @@ static void ComputeDeviation(const Handle(Geom_Curve)& theCurve,
|
||||
theUfMax = 0.;
|
||||
theUlMax = 0.;
|
||||
theImax = 0;
|
||||
Standard_Real dmax = 0., ufmax = 0., ulmax = 0.;
|
||||
Standard_Integer imax = 0;
|
||||
Standard_Real ufmax = 0., ulmax = 0.;
|
||||
|
||||
//take knots
|
||||
Standard_Integer nbp = thePnts->NbKnots();
|
||||
@@ -1234,7 +1233,7 @@ static Standard_Integer mypoints (Draw_Interpretor& di, Standard_Integer /*n*/,
|
||||
|
||||
Draw::Set(a[1], aDrCrv);
|
||||
|
||||
Standard_Real dmax = 0., ufmax = 0., ulmax = 0., uf, ul;
|
||||
Standard_Real dmax = 0., ufmax = 0., ulmax = 0.;
|
||||
Standard_Integer imax = 0;
|
||||
|
||||
ComputeDeviation(C,aPnts,dmax,ufmax,ulmax,imax);
|
||||
|
Reference in New Issue
Block a user