mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-16 08:12:39 -07:00
Fix for -Wmaybe-uninitialized warninig
This commit is contained in:
committed by
Alessandro Ranellucci
parent
40e49613b1
commit
32f5538e0d
@@ -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
|
||||
// to the flow role requested
|
||||
size_t extruder; // 1-based
|
||||
size_t extruder = 0; // 1-based
|
||||
if (role == frPerimeter || role == frExternalPerimeter) {
|
||||
extruder = this->config.perimeter_extruder;
|
||||
} 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) {
|
||||
list<TPPLPoly> polys;
|
||||
list<TPPLPoly>::iterator holeiter,polyiter,iter,iter2;
|
||||
long i,i2,holepointindex,polypointindex;
|
||||
long i,i2,holepointindex,polypointindex = 0;
|
||||
TPPLPoint holepoint,polypoint,bestpolypoint;
|
||||
TPPLPoint linep1,linep2;
|
||||
TPPLPoint v1,v2;
|
||||
|
||||
Reference in New Issue
Block a user