1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-08 14:17:06 +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

@@ -43,12 +43,10 @@ fields
myEdge1 : Edge from TopoDS;
myCurve1 : Curve from Geom2dAdaptor;
myCurveType1 : CurveType from GeomAbs;
myDomain1 : Domain from IntRes2d;
myEdge2 : Edge from TopoDS;
myCurve2 : Curve from Geom2dAdaptor;
myCurveType2 : CurveType from GeomAbs;
myDomain2 : Domain from IntRes2d;
end Hctxee2d from TopOpeBRep;

View File

@@ -117,7 +117,6 @@ void TopOpeBRep_Hctxee2d::SetEdges(const TopoDS_Edge& E1,const TopoDS_Edge& E2,
if (apex) {
TopoDS_Vertex vf,vl; TopExp::Vertices(myEdge1,vf,vl);
gp_Pnt ptf = BRep_Tool::Pnt(vf); Standard_Real df = pt2.Distance(ptf);
gp_Pnt ptl = BRep_Tool::Pnt(vl);
Standard_Real tolf = BRep_Tool::Tolerance(vf);
Standard_Boolean onf = (df < tolf);
TopoDS_Vertex v1 = onf ? vf : vl;