mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +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:
@@ -3301,7 +3301,7 @@ Standard_Boolean ChFi3d_ComputeCurves(Handle(Adaptor3d_HSurface)& S1,
|
||||
// At this stage :
|
||||
// classic intersections have failed, the path is approached in vain.
|
||||
// Standard_Real Step = 0.1;
|
||||
while(1) {
|
||||
for(;;) {
|
||||
//Attention the parameters of arrow for the path and
|
||||
//the tolerance for the approximation can't be taken as those of the
|
||||
//Builder, so they are reestimated as much as possible.
|
||||
|
@@ -851,7 +851,7 @@ Standard_Boolean ChFi3d_Builder::StoreData(Handle(ChFiDS_SurfData)& Data,
|
||||
Standard_Real aDelta = VLast - VFirst;
|
||||
Standard_Integer aDenom = 2;
|
||||
|
||||
while (Standard_True) {
|
||||
for(;;) {
|
||||
Standard_Real aDeltav = aDelta/aDenom;
|
||||
Standard_Real aParam = VFirst + aDeltav;
|
||||
gp_Pnt2d PUV = PCurveOnFace->Value(aParam);
|
||||
|
Reference in New Issue
Block a user