fix warnings: -Wmaybe-uninitialized
This commit is contained in:
parent
16a23d1694
commit
17a3d1e81f
|
@ -1127,7 +1127,7 @@ bool GEOMUtils::FixShapeTolerance( TopoDS_Shape& shape,
|
|||
|
||||
bool GEOMUtils::FixShapeCurves( TopoDS_Shape& shape )
|
||||
{
|
||||
Standard_Real aT, aTolE, aD, aDMax;
|
||||
Standard_Real aT, aTolE, aD, aDMax = 0.0;
|
||||
TopExp_Explorer aExpF, aExpE;
|
||||
NCollection_DataMap<TopoDS_Edge, Standard_Real, TopTools_ShapeMapHasher> aDMETol;
|
||||
aExpF.Init(shape, TopAbs_FACE);
|
||||
|
|
|
@ -1343,7 +1343,7 @@ struct ShapeInfo{
|
|||
const TopoDS_Shape &wire = it->wire;
|
||||
TopoDS_Shape support;
|
||||
bool support_edge;
|
||||
double d;
|
||||
double d = 0;
|
||||
gp_Pnt p;
|
||||
bool done = false;
|
||||
bool is_start = false;
|
||||
|
|
|
@ -746,6 +746,7 @@ namespace SketcherGui {
|
|||
* example, when in lock, horizontal, or vertical constraint modes.
|
||||
*/
|
||||
enum SelType {
|
||||
SelUnknown = 0,
|
||||
SelVertex = 1,
|
||||
SelRoot = 2,
|
||||
SelEdge = 4,
|
||||
|
@ -866,7 +867,7 @@ public:
|
|||
selIdPair.GeoId = Constraint::GeoUndef;
|
||||
selIdPair.PosId = Sketcher::none;
|
||||
std::stringstream ss;
|
||||
SelType newSelType;
|
||||
SelType newSelType = SelUnknown;
|
||||
|
||||
//For each SelType allowed, check if button is released there and assign it to selIdPair
|
||||
int VtId = sketchgui->getPreselectPoint();
|
||||
|
@ -4318,7 +4319,8 @@ void CmdSketcherConstrainAngle::activated(int iMsg)
|
|||
const Part::GeomLineSegment *lineSeg2 = static_cast<const Part::GeomLineSegment*>(geom2);
|
||||
|
||||
// find the two closest line ends
|
||||
Sketcher::PointPos PosId1,PosId2;
|
||||
Sketcher::PointPos PosId1 = Sketcher::none;
|
||||
Sketcher::PointPos PosId2 = Sketcher::none;
|
||||
Base::Vector3d p1[2], p2[2];
|
||||
p1[0] = lineSeg1->getStartPoint();
|
||||
p1[1] = lineSeg1->getEndPoint();
|
||||
|
|
Loading…
Reference in New Issue
Block a user