mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0023604: Uninitialized variables in debug mode
Removed #ifndef DEB ... #else ... #endif directives where the variables were being initialized only in release mode. Removed unused part of code.
This commit is contained in:
@@ -158,11 +158,7 @@ Handle(Expr_GeneralExpression) Expr_Product::ShallowSimplified () const
|
||||
Standard_Integer max = NbOperands();
|
||||
Handle(Expr_GeneralExpression) op;
|
||||
Expr_SequenceOfGeneralExpression newops;
|
||||
#ifndef DEB
|
||||
Standard_Real vals = 0.;
|
||||
#else
|
||||
Standard_Real vals;
|
||||
#endif
|
||||
Standard_Integer nbvals = 0;
|
||||
Standard_Boolean subprod = Standard_False;
|
||||
for (i=1; (i<= max) && !subprod; i++) {
|
||||
|
@@ -167,11 +167,7 @@ Handle(Expr_GeneralExpression) Expr_Sum::ShallowSimplified () const
|
||||
sumop = new Expr_Sum(newops);
|
||||
return sumop->ShallowSimplified();
|
||||
}
|
||||
#ifndef DEB
|
||||
Standard_Real vals = 0.;
|
||||
#else
|
||||
Standard_Real vals;
|
||||
#endif
|
||||
Standard_Boolean noone = Standard_True;
|
||||
for (i = 1; i <= max ; i++) {
|
||||
op = Operand(i);
|
||||
|
Reference in New Issue
Block a user