mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +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:
@@ -2004,7 +2004,7 @@ void ShapeFix_ComposeShell::CollectWires (ShapeFix_SequenceOfWireSegment &wires,
|
||||
Standard_Integer iumin, iumax, ivmin, ivmax;
|
||||
Standard_Real dsu=0., dsv=0.;
|
||||
Standard_Boolean canBeClosed = Standard_False;
|
||||
while ( 1 ) {
|
||||
for(;;) {
|
||||
Standard_Integer index = 0;
|
||||
Standard_Boolean misoriented = Standard_True, samepatch = Standard_False;
|
||||
Standard_Boolean reverse = Standard_False, connected = Standard_False;
|
||||
@@ -2731,7 +2731,7 @@ void ShapeFix_ComposeShell::DispatchWires (TopTools_SequenceOfShape &faces,
|
||||
// Collect wires in packets lying on same surface and dispatch them
|
||||
TColStd_Array1OfBoolean used ( 1, nb );
|
||||
used.Init ( Standard_False );
|
||||
while ( 1 ) {
|
||||
for(;;) {
|
||||
TopTools_SequenceOfShape loops;
|
||||
|
||||
Handle(Geom_Surface) Surf;
|
||||
|
Reference in New Issue
Block a user