Fix for -Wmaybe-uninitialized warninig
This commit is contained in:
parent
40e49613b1
commit
32f5538e0d
2 changed files with 2 additions and 2 deletions
|
@ -50,7 +50,7 @@ PrintRegion::flow(FlowRole role, double layer_height, bool bridge, bool first_la
|
||||||
|
|
||||||
// get the configured nozzle_diameter for the extruder associated
|
// get the configured nozzle_diameter for the extruder associated
|
||||||
// to the flow role requested
|
// to the flow role requested
|
||||||
size_t extruder; // 1-based
|
size_t extruder = 0; // 1-based
|
||||||
if (role == frPerimeter || role == frExternalPerimeter) {
|
if (role == frPerimeter || role == frExternalPerimeter) {
|
||||||
extruder = this->config.perimeter_extruder;
|
extruder = this->config.perimeter_extruder;
|
||||||
} else if (role == frInfill) {
|
} else if (role == frInfill) {
|
||||||
|
|
|
@ -170,7 +170,7 @@ int TPPLPartition::Intersects(TPPLPoint &p11, TPPLPoint &p12, TPPLPoint &p21, TP
|
||||||
int TPPLPartition::RemoveHoles(list<TPPLPoly> *inpolys, list<TPPLPoly> *outpolys) {
|
int TPPLPartition::RemoveHoles(list<TPPLPoly> *inpolys, list<TPPLPoly> *outpolys) {
|
||||||
list<TPPLPoly> polys;
|
list<TPPLPoly> polys;
|
||||||
list<TPPLPoly>::iterator holeiter,polyiter,iter,iter2;
|
list<TPPLPoly>::iterator holeiter,polyiter,iter,iter2;
|
||||||
long i,i2,holepointindex,polypointindex;
|
long i,i2,holepointindex,polypointindex = 0;
|
||||||
TPPLPoint holepoint,polypoint,bestpolypoint;
|
TPPLPoint holepoint,polypoint,bestpolypoint;
|
||||||
TPPLPoint linep1,linep2;
|
TPPLPoint linep1,linep2;
|
||||||
TPPLPoint v1,v2;
|
TPPLPoint v1,v2;
|
||||||
|
|
Loading…
Reference in a new issue