mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-25 01:31:14 -06:00
Trying to fix the remaining OSX warnings
This commit is contained in:
parent
05a6cfeaea
commit
8049dd1f72
7 changed files with 27 additions and 6 deletions
|
|
@ -648,7 +648,12 @@ void FirmwareDialog::priv::perform_upload()
|
|||
}
|
||||
}
|
||||
})
|
||||
.on_message([extra_verbose, q](const char* msg, unsigned /* size */) {
|
||||
.on_message([
|
||||
#ifndef __APPLE__
|
||||
// clang complains when capturing constants.
|
||||
extra_verbose,
|
||||
#endif // __APPLE__
|
||||
q](const char* msg, unsigned /* size */) {
|
||||
if (extra_verbose) {
|
||||
BOOST_LOG_TRIVIAL(debug) << "avrdude: " << msg;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -2,9 +2,12 @@
|
|||
|
||||
#import <algorithm>
|
||||
|
||||
#import <Cocoa/Cocoa.h>
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <AppKit/NSScreen.h>
|
||||
|
||||
@interface MacDarkMode : NSObject {}
|
||||
@end
|
||||
|
||||
@implementation MacDarkMode
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue