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:
@@ -568,7 +568,7 @@ VrmlData_ErrorStatus VrmlData_TextureCoordinate::Read
|
||||
aStatus = VrmlData_VrmlFormatError;
|
||||
else {
|
||||
theBuffer.LinePtr++;
|
||||
while (~0) {
|
||||
for(;;) {
|
||||
gp_XY anXY;
|
||||
if (!OK(aStatus, VrmlData_Scene::ReadLine(theBuffer)))
|
||||
break;
|
||||
@@ -657,7 +657,7 @@ VrmlData_ErrorStatus VrmlData_ArrayVec3d::ReadArray
|
||||
aStatus = VrmlData_VrmlFormatError;
|
||||
else {
|
||||
theBuffer.LinePtr++;
|
||||
while (~0) {
|
||||
for(;;) {
|
||||
gp_XYZ anXYZ;
|
||||
if (!OK(aStatus, VrmlData_Scene::ReadLine(theBuffer)))
|
||||
break;
|
||||
|
@@ -305,7 +305,7 @@ VrmlData_Scene& VrmlData_Scene::operator << (Standard_IStream& theInput)
|
||||
// if (myStatus == StatusOK)
|
||||
// myStatus = ReadLine (aBuffer);
|
||||
// Read VRML data by nodes
|
||||
while (~0) {
|
||||
for(;;) {
|
||||
if (!VrmlData_Node::OK(myStatus, ReadLine(aBuffer))) {
|
||||
if (myStatus == VrmlData_EndOfFile)
|
||||
myStatus = VrmlData_StatusOK;
|
||||
|
@@ -235,7 +235,7 @@ void VrmlData_ShapeConvert::Convert (const Standard_Boolean theExtractFaces,
|
||||
TopLoc_Location aL;
|
||||
|
||||
Standard_Boolean found = Standard_False;
|
||||
for(i = 1; Standard_True; i++) {
|
||||
for(i = 1; ; i++) {
|
||||
|
||||
BRep_Tool::PolygonOnTriangulation(aEdge, aPT, aT, aL, i);
|
||||
|
||||
|
Reference in New Issue
Block a user