mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-10 16:27:54 -06:00
Fix Compile Warnings (#5963)
* Fix calls to depreciated wxPen constructor * Fix use of wxTimerEvent * Fix unrecognized character escape sequence * Fix signed/unsigned mismatch At least as much as possible without significantly altering parts of the application * Clean unreferenced variables * fix mistyped namespace selector * Update deprecated calls * Fix preprocessor statement * Remove empty switch statements * Change int vector used as bool to bool vector * Remove empty control statements and related unused code * Change multi character constant to string constant * Fix discarded return value json::parse was being called on the object, rather than statically like it should be. Also, the value was not being captured. * Rename ICON_SIZE def used by MultiMachine By having the definition in the header, it causes issues when other files define ICON_SIZE. By renaming it to MM_ICON_SIZE, this lessens the issue. It would probably be ideal to have the definitions in the respective .cpp that use them, but it would make it less convenient to update the values if needed in the future. * Remove unused includes * Fix linux/macOS compilation * Hide unused-function errors on non-Windows systems * Disable signed/unsigned comparison mismatch error * Remove/Disable more unused variables Still TODO: check double for loop in Print.cpp * Remove unused variable that was missed * Remove unused variables in libraries in the src folder * Apply temporary fix for subobject linkage error * Remove/Disable last set of unused variables reported by GCC * remove redundant for loop * fix misspelled ifdef check * Update message on dialog * Fix hard-coded platform specific modifier keys * Remove duplicate for loop * Disable -Wmisleading-indentation warning * disable -Wswitch warning * Remove unused local typedefs * Fix -Wunused-value * Fix pragma error on Windows from subobject linkage fix * Fix -Waddress * Fix null conversions (-Wconversion-null) --------- Co-authored-by: SoftFever <softfeverever@gmail.com>
This commit is contained in:
parent
b40853af94
commit
b83e16dbdd
187 changed files with 494 additions and 1101 deletions
|
@ -677,7 +677,6 @@ void PrintObject::estimate_curled_extrusions()
|
|||
[](const PrintRegion *region) { return region->config().enable_overhang_speed.getBool(); })) {
|
||||
|
||||
// Estimate curling of support material and add it to the malformaition lines of each layer
|
||||
float support_flow_width = support_material_flow(this, this->config().layer_height).width();
|
||||
SupportSpotsGenerator::Params params{this->print()->m_config.filament_type.values,
|
||||
float(this->print()->default_object_config().inner_wall_acceleration.getFloat()),
|
||||
this->config().raft_layers.getInt(), this->config().brim_type.value,
|
||||
|
@ -2949,16 +2948,16 @@ struct POProfiler
|
|||
|
||||
void PrintObject::generate_support_preview()
|
||||
{
|
||||
POProfiler profiler;
|
||||
// POProfiler profiler;
|
||||
|
||||
boost::posix_time::ptime ts1 = boost::posix_time::microsec_clock::local_time();
|
||||
// boost::posix_time::ptime ts1 = boost::posix_time::microsec_clock::local_time();
|
||||
this->slice();
|
||||
boost::posix_time::ptime ts2 = boost::posix_time::microsec_clock::local_time();
|
||||
profiler.duration1 = (ts2 - ts1).total_milliseconds();
|
||||
// boost::posix_time::ptime ts2 = boost::posix_time::microsec_clock::local_time();
|
||||
// profiler.duration1 = (ts2 - ts1).total_milliseconds();
|
||||
|
||||
this->generate_support_material();
|
||||
boost::posix_time::ptime ts3 = boost::posix_time::microsec_clock::local_time();
|
||||
profiler.duration2 = (ts3 - ts2).total_milliseconds();
|
||||
// boost::posix_time::ptime ts3 = boost::posix_time::microsec_clock::local_time();
|
||||
// profiler.duration2 = (ts3 - ts2).total_milliseconds();
|
||||
}
|
||||
|
||||
void PrintObject::update_slicing_parameters()
|
||||
|
@ -3668,7 +3667,6 @@ template void PrintObject::remove_bridges_from_contacts<Polygons>(
|
|||
|
||||
SupportNecessaryType PrintObject::is_support_necessary()
|
||||
{
|
||||
static const double super_overhang_area_threshold = SQ(scale_(5.0));
|
||||
const double cantilevel_dist_thresh = scale_(6);
|
||||
#if 0
|
||||
double threshold_rad = (m_config.support_threshold_angle.value < EPSILON ? 30 : m_config.support_threshold_angle.value + 1) * M_PI / 180.;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue