Skip to content

Commit

Permalink
Yet another clang compiler warning suppressed.
Browse files Browse the repository at this point in the history
  • Loading branch information
bubnikv committed Feb 9, 2021
1 parent 2393d64 commit f61119e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/libslic3r/Fill/FillBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -678,6 +678,7 @@ static inline bool line_rounded_thick_segment_collision(
return intersects;
}

#if 0
static inline bool inside_interval(double low, double high, double p)
{
return p >= low && p <= high;
Expand All @@ -690,7 +691,6 @@ static inline bool interval_inside_interval(double outer_low, double outer_high,
return inside_interval(outer_low, outer_high, inner_low) && inside_interval(outer_low, outer_high, inner_high);
}

#if 0
static inline bool cyclic_interval_inside_interval(double outer_low, double outer_high, double inner_low, double inner_high, double length)
{
if (outer_low > outer_high)
Expand Down
2 changes: 1 addition & 1 deletion src/libslic3r/SlicingAdaptive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ static inline std::pair<float, float> face_z_span(const stl_facet &f)
// https://tams.informatik.uni-hamburg.de/publications/2017/Adaptive%20Slicing%20for%20the%20FDM%20Process%20Revisited.pdf
// (page 51, formula (8))
// Currenty @platch's error metric formula is not used.
static constexpr const double SURFACE_CONST = 0.18403;
//static constexpr const double SURFACE_CONST = 0.18403;

// for a given facet, compute maximum height within the allowed surface roughness / stairstepping deviation
static inline float layer_height_from_slope(const SlicingAdaptive::FaceZ &face, float max_surface_deviation)
Expand Down
14 changes: 6 additions & 8 deletions src/slic3r/GUI/RemovableDriveManagerMM.mm
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,8 @@ -(NSArray*) list_dev
{
int err = 0;
DADiskRef disk;
DASessionRef session;
CFDictionaryRef descDict;
session = DASessionCreate(nullptr);
CFDictionaryRef descDict = nullptr;
DASessionRef session = DASessionCreate(nullptr);
if (session == nullptr)
err = EINVAL;
if (err == 0) {
Expand Down Expand Up @@ -96,16 +95,15 @@ -(NSArray*) list_dev
//this eject drive is not used now
-(void)eject_drive:(NSString *)path
{
DADiskRef disk;
DASessionRef session;
NSURL *url = [[NSURL alloc] initFileURLWithPath:path];
DASessionRef session = DASessionCreate(nullptr);
int err = 0;
session = DASessionCreate(nullptr);
if (session == nullptr)
err = EINVAL;
DADiskRef disk = nullptr;
if (err == 0)
disk = DADiskCreateFromVolumePath(nullptr, session, (CFURLRef)url);
if (err == 0)
disk = DADiskCreateFromVolumePath(nullptr,session,(CFURLRef)url);
if( err == 0)
//DADiskUnmount(disk, kDADiskUnmountOptionDefault, nullptr, nullptr);
DADiskUnmount(disk, kDADiskUnmountOptionWhole | kDADiskUnmountOptionForce, unmount_callback, nullptr);
if (disk != nullptr)
Expand Down

0 comments on commit f61119e

Please sign in to comment.