1
0
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:
omy
2013-07-12 12:37:38 +04:00
parent a8195d65ba
commit 302f96fb0d
189 changed files with 455 additions and 1010 deletions

View File

@@ -55,7 +55,7 @@ StepData_DefaultGeneral::StepData_DefaultGeneral ()
void StepData_DefaultGeneral::CheckCase(const Standard_Integer casenum,
const Handle(Standard_Transient)& ent,
const Interface_ShareTool& shares,
Handle(Interface_Check)& ach) const
Handle(Interface_Check)& /*ach*/) const
{
} // pas de Check sur une UndefinedEntity

View File

@@ -37,7 +37,7 @@ StepData_DescrGeneral::StepData_DescrGeneral
void StepData_DescrGeneral::CheckCase(const Standard_Integer CN,
const Handle(Standard_Transient)& ent,
const Interface_ShareTool& shares,
Handle(Interface_Check)& ach) const
Handle(Interface_Check)& /*ach*/) const
{
} // pour l instant

View File

@@ -224,7 +224,7 @@ StepData_PDescr::StepData_PDescr ()
void StepData_PDescr::Check(const StepData_Field& afild,
Handle(Interface_Check)& ach) const
Handle(Interface_Check)& /*ach*/) const
{
// pour l instant ...
}

View File

@@ -78,7 +78,7 @@ StepData_Simple::StepData_Simple (const Handle(StepData_ESDescr)& descr)
{ return thefields; }
void StepData_Simple::Check(Handle(Interface_Check)& ach) const
void StepData_Simple::Check(Handle(Interface_Check)& /*ach*/) const
{
} // qq chose ? cf la description

View File

@@ -1606,7 +1606,7 @@ void StepData_StepReaderData::SetEntityNumbers(const Standard_Boolean withmap)
Standard_Integer fromscope = nr;
Standard_Integer toscope = indm(indmap);
if (toscope < 0) toscope = -toscope;
while (1) {
for(;;) {
fromscope --; // iteration de base
if (fromscope <= toscope) {
errorscope = Standard_True; // BANG, on est dessus