mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-24 13:50:49 +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:
@@ -104,7 +104,7 @@ Standard_Integer Interface_FloatWriter::Convert (const Standard_Real val,
|
||||
// Valeur flottante, expurgee de "0000" qui trainent et de "E+00"
|
||||
const Standard_Integer anMasSize = 5; // change 6 to 5: index 5 is not used below
|
||||
char lxp[anMasSize], *pText;
|
||||
int i0, j0 = 0;
|
||||
int i0 = 0, j0 = 0;
|
||||
|
||||
for (Standard_Integer i = 0; i < anMasSize; ++i)
|
||||
lxp[i] = '\0';
|
||||
|
Reference in New Issue
Block a user