mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-12 02:40:22 +08:00
0023947: Eliminate trivial compiler warnings in MSVC++ with warning level 4
Fix first subset of warnings (about 100) - while(1) and similar constructs replaced by for(;;) - some uninitialized variables corrected Got rid of Warning C4189: local variable is initialised but not referenced Corrected mistakes after getting rid of C4189 compiler warning Corrected some mistakes that led to compiling errors Fixed test case because of improvement message - removed unnecessary TODO. Small fix: tabs have been replaced with whitespaces. Added TODO for Windows platform removed last TODO Corrected mistakes, returned some #ifdef DEB code, fixed test case . Restoring a few places which have been modified too much Small grammar fix Deleted unnecessary puts in bugs/end
This commit is contained in:
@@ -531,8 +531,6 @@ void BRepOffsetAPI_MiddlePath::Build()
|
||||
E2 = TopoDS::Edge(myPaths((j<=NbPaths)? j : 1)(i));
|
||||
TopoDS_Edge E12 = TopoDS::Edge(SectionsEdges(i)(j-1));
|
||||
|
||||
//TopoDS_Vertex PrevVertex = TopoDS::Vertex(VerSeq(j-1));
|
||||
//TopoDS_Vertex CurVertex = TopoDS::Vertex(VerSeq(j));
|
||||
TopoDS_Vertex PrevVertex = (E1.IsNull())? TopoDS::Vertex(myPaths(j-1)(i))
|
||||
: TopExp::LastVertex(E1, Standard_True);
|
||||
TopoDS_Vertex CurVertex = (E2.IsNull())? TopoDS::Vertex(myPaths((j<=NbPaths)? j : 1)(i))
|
||||
@@ -540,9 +538,7 @@ void BRepOffsetAPI_MiddlePath::Build()
|
||||
|
||||
TopoDS_Edge ProperEdge;
|
||||
const TopTools_ListOfShape& LE = VEmap.FindFromKey(PrevVertex);
|
||||
//Temporary
|
||||
Standard_Integer LenList = LE.Extent();
|
||||
///////////
|
||||
|
||||
for (itl.Initialize(LE); itl.More(); itl.Next())
|
||||
{
|
||||
anEdge = TopoDS::Edge(itl.Value());
|
||||
@@ -673,7 +669,6 @@ void BRepOffsetAPI_MiddlePath::Build()
|
||||
BRepLib::BuildCurve3d(NewEdge2);
|
||||
Standard_Boolean good_ne = IsValidEdge(NewEdge, theFace);
|
||||
Standard_Boolean good_ne1 = IsValidEdge(NewEdge1, theFace);
|
||||
Standard_Boolean good_ne2 = IsValidEdge(NewEdge2, theFace);
|
||||
|
||||
GeomAbs_CurveType type_E1 = TypeOfEdge(E1);
|
||||
GeomAbs_CurveType type_E2 = TypeOfEdge(E2);
|
||||
|
||||
Reference in New Issue
Block a user