1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-04 13:13:25 +03:00

0032341: Coding Rules - eliminate GCC11 compiler warnings -Wmaybe-uninitialized

This commit is contained in:
kgv
2021-04-29 21:01:17 +03:00
parent 36fbf05b15
commit b04cd5d587
13 changed files with 84 additions and 86 deletions

View File

@@ -770,7 +770,7 @@ void StepData_StepWriter::Send (const Standard_Integer val)
void StepData_StepWriter::Send (const Standard_Real val)
{
// Valeur flottante, expurgee de "0000" qui trainent et de "E+00"
char lval[24];
char lval[24] = {};
Standard_Integer lng = thefloatw.Write(val,lval);
AddParam();
AddString(lval,lng); // gere le format specifique : si besoin est