mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-03 14:10:33 +03:00
0024059: Eliminate compiler warning C4701 in MSVC++ with warning level 4
Removing pPotentially uninitialized local variable Got rid of most of warnings C4701: Potentially uninitialized local variable Removed redundant variable definitions. Refactored a part of AppParCurves_ResolConstraint CTOR. Replaced 0. to Precision::Confusion for tolerance vars; Changed values for min and max parameter vars; Got rid of redundant variables' initialization.
This commit is contained in:
@@ -303,7 +303,7 @@ void DDF_IOStream::ReadChar(TCollection_AsciiString& buffer, const Standard_Inte
|
||||
|
||||
void DDF_IOStream::ReadString(TCollection_AsciiString& buffer)
|
||||
{
|
||||
char c;
|
||||
char c = '\0';
|
||||
Standard_Boolean IsEnd = Standard_False;
|
||||
|
||||
buffer.Clear();
|
||||
@@ -329,7 +329,7 @@ void DDF_IOStream::ReadString(TCollection_AsciiString& buffer)
|
||||
|
||||
void DDF_IOStream::ReadWord(TCollection_AsciiString& buffer)
|
||||
{
|
||||
char c;
|
||||
char c = '\0';
|
||||
Standard_Boolean IsEnd = Standard_False;
|
||||
|
||||
buffer.Clear();
|
||||
|
Reference in New Issue
Block a user