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:
@@ -960,7 +960,6 @@ static Standard_Integer DDataStd_GetExtStringArray (Draw_Interpretor& di,
|
||||
}
|
||||
|
||||
for(Standard_Integer i = A->Lower(); i<=A->Upper(); i++){
|
||||
const TCollection_ExtendedString& anExtendedString = A->Value(i);
|
||||
TCollection_AsciiString anAsciiString(A->Value(i),'?');
|
||||
di << anAsciiString.ToCString();
|
||||
if(i<A->Upper())
|
||||
@@ -1188,7 +1187,6 @@ static Standard_Integer DDataStd_SetBooleanArray (Draw_Interpretor& di,
|
||||
|
||||
TDF_Label label;
|
||||
DDF::AddLabel(DF, arg[2], label);
|
||||
Standard_Integer isDelta = Draw::Atoi(arg[3]);
|
||||
Standard_Integer From = Draw::Atoi(arg[4]), To = Draw::Atoi( arg[5] ), j;
|
||||
di << "Array of Standard_Boolean with bounds from = " << From << " to = " << To << "\n";
|
||||
Handle(TDataStd_BooleanArray) A = TDataStd_BooleanArray::Set(label, From, To);
|
||||
|
@@ -98,10 +98,6 @@ static void Sample()
|
||||
realarray->SetValue(j, M_PI * j);
|
||||
}
|
||||
|
||||
// Getting length of array
|
||||
|
||||
Standard_Integer length = realarray->Length();
|
||||
|
||||
// Retrieving value by index
|
||||
|
||||
Standard_Real value = realarray->Value(3);
|
||||
@@ -346,7 +342,6 @@ static void Sample()
|
||||
|
||||
Handle(TDataStd_Real) valOfdistance = constraint->GetValue();
|
||||
|
||||
Standard_Real distance = valOfdistance->Get();
|
||||
}
|
||||
|
||||
// Setting PARALLEL constraint between NS1 and NS2
|
||||
|
Reference in New Issue
Block a user