From 32f5538e0d76aa278c747283441c1359e4ac9aec Mon Sep 17 00:00:00 2001 From: ntfshard Date: Sun, 23 Aug 2015 22:18:44 +0300 Subject: [PATCH] Fix for -Wmaybe-uninitialized warninig --- xs/src/libslic3r/PrintRegion.cpp | 2 +- xs/src/polypartition.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xs/src/libslic3r/PrintRegion.cpp b/xs/src/libslic3r/PrintRegion.cpp index e5b9092e4c..1807f84bc6 100644 --- a/xs/src/libslic3r/PrintRegion.cpp +++ b/xs/src/libslic3r/PrintRegion.cpp @@ -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) { diff --git a/xs/src/polypartition.cpp b/xs/src/polypartition.cpp index b1e965cfeb..bdd23f6f3f 100644 --- a/xs/src/polypartition.cpp +++ b/xs/src/polypartition.cpp @@ -170,7 +170,7 @@ int TPPLPartition::Intersects(TPPLPoint &p11, TPPLPoint &p12, TPPLPoint &p21, TP int TPPLPartition::RemoveHoles(list *inpolys, list *outpolys) { list polys; list::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;