mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-08-01 15:22:21 +00:00
Fixes 4 Compiler Warnings (#10727)
* fixes: may be used uninitialized [-Wmaybe-uninitialized]
* fixes: arc_len_next may be used uninitialized [-Wmaybe-uninitialized]
* review result: reverts {} initializer with = to keep code style consistent
This commit is contained in:
committed by
GitHub
parent
80e64f80a6
commit
883ea023b0
@@ -25,7 +25,7 @@ public:
|
|||||||
min(p1), max(p1), defined(false) { merge(p2); merge(p3); }
|
min(p1), max(p1), defined(false) { merge(p2); merge(p3); }
|
||||||
|
|
||||||
template<class It, class = IteratorOnly<It>>
|
template<class It, class = IteratorOnly<It>>
|
||||||
BoundingBoxBase(It from, It to)
|
BoundingBoxBase(It from, It to) : BoundingBoxBase()
|
||||||
{ construct(*this, from, to); }
|
{ construct(*this, from, to); }
|
||||||
|
|
||||||
BoundingBoxBase(const PointsType &points)
|
BoundingBoxBase(const PointsType &points)
|
||||||
|
|||||||
@@ -1857,12 +1857,12 @@ static inline void base_support_extend_infill_lines(Polylines &infill, BoundaryI
|
|||||||
const bool first = graph.first(cp);
|
const bool first = graph.first(cp);
|
||||||
int extend_next_idx = -1;
|
int extend_next_idx = -1;
|
||||||
int extend_prev_idx = -1;
|
int extend_prev_idx = -1;
|
||||||
coord_t dist_y_prev;
|
coord_t dist_y_prev = 0;
|
||||||
coord_t dist_y_next;
|
coord_t dist_y_next = 0;
|
||||||
double arc_len_prev;
|
double arc_len_prev = 0;
|
||||||
double arc_len_next;
|
double arc_len_next = 0;
|
||||||
|
|
||||||
if (! graph.next_vertical(cp)){
|
if (! graph.next_vertical(cp)) {
|
||||||
size_t i = cp.point_idx;
|
size_t i = cp.point_idx;
|
||||||
size_t j = next_idx_modulo(i, contour);
|
size_t j = next_idx_modulo(i, contour);
|
||||||
while (j != cp.next_on_contour->point_idx) {
|
while (j != cp.next_on_contour->point_idx) {
|
||||||
|
|||||||
Reference in New Issue
Block a user