Fixed compiler warnings

This commit is contained in:
Lukas Matena 2022-06-03 12:45:06 +02:00
parent 792caae0ca
commit 75a6f54f0b
4 changed files with 3 additions and 4 deletions

View File

@ -313,7 +313,7 @@ static std::vector<InnerBrimExPolygons> inner_brim_area(const Print
// After 7ff76d07684858fd937ef2f5d863f105a10f798e offset and shrink don't work with CW polygons (holes), so let's make it CCW.
Polygons ex_poly_holes_reversed = ex_poly.holes;
polygons_reverse(ex_poly_holes_reversed);
for (const PrintInstance &instance : object->instances()) {
for ([[maybe_unused]] const PrintInstance &instance : object->instances()) {
++polygon_idx; // Increase idx because of the contour of the ExPolygon.
if (brim_type == BrimType::btInnerOnly || brim_type == BrimType::btOuterAndInner)

View File

@ -894,7 +894,6 @@ void SLAPrint::Steps::merge_slices_and_eval_stats() {
const double init_exp_time = material_config.initial_exposure_time.getFloat();
const double exp_time = material_config.exposure_time.getFloat();
const double layer_height = m_print->m_default_object_config.layer_height.getFloat();
const int fade_layers_cnt = m_print->m_default_object_config.faded_layers.getInt();// 10 // [3;20]
const auto width = scaled<double>(printer_config.display_width.getFloat());

View File

@ -3449,7 +3449,7 @@ void GCodeViewer::render_legend(float& legend_height)
std::vector<CustomGCode::Item> custom_gcode_per_print_z = wxGetApp().is_editor() ? wxGetApp().plater()->model().custom_gcode_per_print_z.gcodes : m_custom_gcode_per_print_z;
std::vector<Color> last_color(m_extruders_count);
for (int i = 0; i < m_extruders_count; ++i) {
for (size_t i = 0; i < m_extruders_count; ++i) {
last_color[i] = m_tool_colors[i];
}
int last_extruder_id = 1;

View File

@ -5811,7 +5811,7 @@ void Plater::export_stl(bool extended, bool selection_only)
mesh.merge(m);
}
}
else if (0 <= instance_id && instance_id < mo.instances.size())
else if (0 <= instance_id && instance_id < int(mo.instances.size()))
mesh.transform(mo.instances[instance_id]->get_matrix(), true);
return mesh;