mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-23 14:44:19 -06:00
Fixed some more GCC warnings
This commit is contained in:
parent
df634a715d
commit
dc4bdad84a
6 changed files with 18 additions and 10 deletions
|
@ -16,6 +16,7 @@ using namespace Slic3r;
|
|||
namespace Slic3r {
|
||||
ClipperLib::Path mittered_offset_path_scaled(const Points& contour, const std::vector<float>& deltas, double miter_limit);
|
||||
|
||||
#if 0
|
||||
static Points mittered_offset_path_scaled_points(const Points& contour, const std::vector<float>& deltas, double miter_limit)
|
||||
{
|
||||
Points out;
|
||||
|
@ -29,6 +30,7 @@ namespace Slic3r {
|
|||
}
|
||||
return out;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
static ExPolygon spirograph_gear_1mm()
|
||||
|
@ -494,6 +496,7 @@ SCENARIO("Elephant foot compensation", "[ElephantFoot]") {
|
|||
ExPolygon input = spirograph_gear_1mm().simplify(SCALED_EPSILON).front();
|
||||
ExPolygon output;
|
||||
std::vector<float> deltas(input.contour.points.size(), scale_(1.));
|
||||
// mittered_offset_path_scaled_points is commented out somewhere above
|
||||
output.contour.points = Slic3r::mittered_offset_path_scaled_points(input.contour.points, deltas, 2.);
|
||||
#ifdef TESTS_EXPORT_SVGS
|
||||
{
|
||||
|
|
|
@ -326,7 +326,9 @@ static void recreate_object_from_rasters(const std::string &objname, float lh) {
|
|||
double disp_w = 120.96;
|
||||
double disp_h = 68.04;
|
||||
|
||||
#ifndef NDEBUG
|
||||
size_t cntr = 0;
|
||||
#endif
|
||||
for (ExPolygons &layer : layers) {
|
||||
auto rst = create_raster(res, disp_w, disp_h);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue