Fix: Fix a number of compilation problems

issues found when using gcc version 13.2.0 (GCC) in a Flatpak sandbox

github : https://github.com/bambulab/BambuStudio/issues/3074
github pull request: https://github.com/bambulab/BambuStudio/pull/3096

Change-Id: I08aeac593eb1ce7675894df72e8489200bae713d
(cherry picked from commit 069d133d66bfa682de4a860e379d5dc16b3d907c)
This commit is contained in:
Bastien Nocera 2023-12-10 22:54:08 +01:00 committed by lane.wei
parent 4efd6481ae
commit 42453691d2
11 changed files with 20 additions and 0 deletions

View File

@ -1,4 +1,5 @@
#include "ArcFitter.hpp"
#include "Polyline.hpp"
#include <cmath>
#include <cassert>

View File

@ -13,6 +13,8 @@
#include <unordered_set>
#include <tbb/parallel_for.h>
#include <boost/log/trivial.hpp>
#ifndef NDEBUG
// #define BRIM_DEBUG_TO_SVG
#endif

View File

@ -1,5 +1,6 @@
#include "BuildVolume.hpp"
#include "ClipperUtils.hpp"
#include "TriangleMesh.hpp"
#include "Geometry/ConvexHull.hpp"
#include "GCode/GCodeProcessor.hpp"
#include "Point.hpp"

View File

@ -8,6 +8,7 @@
#include <fstream>
#include <iostream>
#include <iomanip>
#include <regex>
#include <boost/algorithm/string.hpp>
#include <boost/algorithm/string/classification.hpp>
#include <boost/algorithm/string/erase.hpp>
@ -17,6 +18,7 @@
#include <boost/config.hpp>
#include <boost/foreach.hpp>
#include <boost/lexical_cast.hpp>
#include <boost/log/trivial.hpp>
#include <boost/nowide/cenv.hpp>
#include <boost/nowide/iostream.hpp>
#include <boost/nowide/fstream.hpp>

View File

@ -2,6 +2,7 @@
#include "TriangleMesh.hpp"
#include "SLA/IndexedMesh.hpp"
#include "Model.hpp"
#include <unordered_set>
namespace Slic3r {
static const double BBOX_OFFSET = 2.0;

View File

@ -5,6 +5,12 @@
#include "STEP.hpp"
#include <string>
#include <boost/nowide/cstdio.hpp>
#include <boost/nowide/iostream.hpp>
#include <boost/nowide/fstream.hpp>
#include <tbb/blocked_range.h>
#include <tbb/parallel_for.h>
#ifdef _WIN32
#define DIR_SEPARATOR '\\'

View File

@ -24,6 +24,7 @@
#include <boost/algorithm/string/replace.hpp>
#include <boost/filesystem/operations.hpp>
#include <boost/filesystem/string_file.hpp>
#include <boost/lexical_cast.hpp>
#include <boost/nowide/fstream.hpp>
#include <boost/nowide/cstdio.hpp>
#include <boost/spirit/include/karma.hpp>
@ -37,6 +38,8 @@
namespace pt = boost::property_tree;
#include <tbb/blocked_range.h>
#include <tbb/parallel_for.h>
#include <tbb/parallel_reduce.h>
#include <expat.h>

View File

@ -2,6 +2,7 @@
#define slic3r_Layer_hpp_
#include "libslic3r.h"
#include "BoundingBox.hpp"
#include "Flow.hpp"
#include "SurfaceCollection.hpp"
#include "ExtrusionEntityCollection.hpp"

View File

@ -2,6 +2,7 @@
#define slic3r_ObjectID_hpp_
#include <cereal/access.hpp>
#include <cereal/types/base_class.hpp>
namespace Slic3r {

View File

@ -5,6 +5,7 @@
#include <set>
#include <unordered_map>
#include <functional>
#include <mutex>
#include <boost/filesystem/path.hpp>
#include <boost/property_tree/ptree_fwd.hpp>

View File

@ -1,6 +1,7 @@
#ifndef slic3r_Utils_hpp_
#define slic3r_Utils_hpp_
#include <iomanip>
#include <locale>
#include <utility>
#include <functional>