mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03: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:
@@ -761,7 +761,6 @@ void BRepMesh_Delaun::RemovePivotTriangles( const Standard_Integer theEdgeInfo,
|
||||
GetTriangle( anElemId ).Edges( e[0], e[1], e[2],
|
||||
o[0], o[1], o[2] );
|
||||
|
||||
Standard_Boolean isFind = Standard_False;
|
||||
for ( Standard_Integer anIndex = 0; anIndex < 3; ++anIndex )
|
||||
{
|
||||
if ( e[anIndex] == anMainEdgeId && o[anIndex] == anIsForward )
|
||||
@@ -1128,7 +1127,6 @@ void BRepMesh_Delaun::MeshLeftPolygonOf( const Standard_Integer theEdgeIndex,
|
||||
return;
|
||||
|
||||
Standard_Integer aDeadEdgeId = Abs( aPolygon.Last() );
|
||||
const BRepMesh_Edge& aDeadEdge = GetEdge( aDeadEdgeId );
|
||||
|
||||
aDealLinks.Add( aDeadEdgeId );
|
||||
|
||||
|
@@ -169,7 +169,7 @@ const BRepMesh_ListOfInteger& BRepMesh_VertexTool::GetListOfDelNodes() const
|
||||
//=======================================================================
|
||||
Standard_Integer BRepMesh_VertexTool::FindIndex(const BRepMesh_Vertex& theVertex)
|
||||
{
|
||||
mySelector.SetCurrent(theVertex.Coord());
|
||||
mySelector.SetCurrent(theVertex.Coord(), Standard_False);
|
||||
myCellFilter.Inspect (theVertex.Coord(), mySelector);
|
||||
return mySelector.GetCoincidentInd();
|
||||
}
|
||||
|
Reference in New Issue
Block a user