Fixing some compiler warnings on Linux

This commit is contained in:
Vojtech Bubnik 2021-02-08 11:58:03 +01:00
parent cbee82dc95
commit 5449e6c549
4 changed files with 10 additions and 8 deletions

View file

@ -676,7 +676,7 @@ namespace Slic3r {
// select the geometry associated with the original model object
const Geometry* geometry = nullptr;
for (const IdToModelObjectMap::value_type& object : m_objects) {
if (static_cast<int>(object.second) == i) {
if (object.second == int(i)) {
IdToGeometryMap::const_iterator obj_geometry = m_geometries.find(object.first);
if (obj_geometry == m_geometries.end()) {
add_error("Unable to find object geometry");
@ -1875,7 +1875,6 @@ namespace Slic3r {
}
else {
std::cout << "non-single instance !!!\n";
int a = 0;
}
}
#endif // ENABLE_RELOAD_FROM_DISK_FOR_3MF