1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0026788: Compiler warnings when OCCT_DEBUG is enabled

Clean-up in code causing warnings when OCCT_DEBUG is enabled

Minor corrections:
- new compiler warnings on VC++ 14
- rename of "PPC" variables that are said to caused conflicts on PowerPC
- removal of unused header TopOpeBRep/TopOpeBRep_tools.hxx
This commit is contained in:
abv
2015-10-20 14:04:55 +03:00
committed by bugmaster
parent 5f07d05d0e
commit 7636352267
22 changed files with 70 additions and 124 deletions

View File

@@ -462,17 +462,20 @@ static Standard_Boolean EdgeIntersectOnWire (const gp_Pnt& P1,
if (DSS.IsDone()) {
// choose the solution closest to P2
Standard_Integer isol = 1;
Standard_Real dss = P2.Distance(DSS.PointOnShape2(isol));
gp_Pnt Psol = DSS.PointOnShape2(isol);
Standard_Real dss = P2.Distance(Psol);
for (Standard_Integer iss=2; iss<=DSS.NbSolution(); iss++) {
if (dss>P2.Distance(DSS.PointOnShape2(iss))) {
dss = P2.Distance(DSS.PointOnShape2(iss));
isol = iss;
gp_Pnt Pss = DSS.PointOnShape2(iss);
Standard_Real aDist = P2.Distance(Pss);
if (dss > aDist) {
dss = aDist;
isol = iss;
#ifdef OCCT_DEBUG
Psol = Pss;
#endif
}
}
#ifdef OCCT_DEBUG
gp_Pnt Psol =
#endif
DSS.PointOnShape2(isol);
// is the solution a new vertex ?
NewVertex = (DSS.SupportTypeShape2(isol) != BRepExtrema_IsVertex);
if (NewVertex) {