From 7a604c248953b406c0c4c87e648d7c19875e31a2 Mon Sep 17 00:00:00 2001 From: Vojtech Bubnik Date: Wed, 10 Feb 2021 18:42:19 +0100 Subject: [PATCH] Trying to reduce some more clang compiler warnings --- src/libslic3r/KDTreeIndirect.hpp | 3 ++- src/slic3r/GUI/GLCanvas3D.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/libslic3r/KDTreeIndirect.hpp b/src/libslic3r/KDTreeIndirect.hpp index 239008559c..12e462569e 100644 --- a/src/libslic3r/KDTreeIndirect.hpp +++ b/src/libslic3r/KDTreeIndirect.hpp @@ -195,8 +195,9 @@ private: template size_t find_closest_point(const KDTreeIndirectType &kdtree, const PointType &point, FilterFn filter) { + using CoordType = typename KDTreeIndirectType::CoordType; + struct Visitor { - using CoordType = typename KDTreeIndirectType::CoordType; const KDTreeIndirectType &kdtree; const PointType &point; const FilterFn filter; diff --git a/src/slic3r/GUI/GLCanvas3D.cpp b/src/slic3r/GUI/GLCanvas3D.cpp index bbdcdf5d2c..83696ffa31 100644 --- a/src/slic3r/GUI/GLCanvas3D.cpp +++ b/src/slic3r/GUI/GLCanvas3D.cpp @@ -80,7 +80,7 @@ static constexpr const size_t MAX_VERTEX_BUFFER_SIZE = 131072 * 6; // 3.15MB // Reserve size in number of floats. static constexpr const size_t VERTEX_BUFFER_RESERVE_SIZE = 131072 * 2; // 1.05MB // Reserve size in number of floats, maximum sum of all preallocated buffers. -static constexpr const size_t VERTEX_BUFFER_RESERVE_SIZE_SUM_MAX = 1024 * 1024 * 128 / 4; // 128MB +//static constexpr const size_t VERTEX_BUFFER_RESERVE_SIZE_SUM_MAX = 1024 * 1024 * 128 / 4; // 128MB namespace Slic3r { namespace GUI {