Salome HOME
Get rid of compilation warnings. Part I.
[modules/shaper.git] / src / GeomAPI / GeomAPI_Solid.cpp
index da5513119921a395c417638aa3833e04fff8867a..9fb6d44fddcee97ded92129b24eb83bcfda51b92 100644 (file)
@@ -68,8 +68,8 @@ std::shared_ptr<GeomAPI_Cylinder> GeomAPI_Solid::getCylinder() const
 
   GeomPointPtr aLocation;
   GeomDirPtr anAxis;
-  double aRadius;
-  double aHeight;
+  double aRadius = 0.0;
+  double aHeight = 0.0;
 
   GeomPlanePtr aCaps[2];
 
@@ -173,8 +173,8 @@ std::shared_ptr<GeomAPI_Cone> GeomAPI_Solid::getCone() const
 
   GeomPointPtr anApex;
   GeomDirPtr anAxis;
-  double aSemiAngle;
-  double aHeight;
+  double aSemiAngle = 0.0;
+  double aHeight = 0.0;
 
   GeomPlanePtr aCaps[2];