mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-09-24 01:43:11 +08:00
Fix some warnings on gcc 11
This commit is contained in:
parent
39a6c13c81
commit
ed67fb506e
@ -705,7 +705,7 @@ bool CLI::setup(int argc, char **argv)
|
|||||||
|
|
||||||
// Initialize with defaults.
|
// Initialize with defaults.
|
||||||
for (const t_optiondef_map *options : { &cli_actions_config_def.options, &cli_transform_config_def.options, &cli_misc_config_def.options })
|
for (const t_optiondef_map *options : { &cli_actions_config_def.options, &cli_transform_config_def.options, &cli_misc_config_def.options })
|
||||||
for (const std::pair<t_config_option_key, ConfigOptionDef> &optdef : *options)
|
for (const t_optiondef_map::value_type &optdef : *options)
|
||||||
m_config.option(optdef.first, true);
|
m_config.option(optdef.first, true);
|
||||||
|
|
||||||
set_data_dir(m_config.opt_string("datadir"));
|
set_data_dir(m_config.opt_string("datadir"));
|
||||||
|
@ -577,7 +577,7 @@ private:
|
|||||||
|
|
||||||
|
|
||||||
template<class Level>
|
template<class Level>
|
||||||
Shapes calcnfp(const Item &trsh, Level)
|
Shapes calcnfp(const Item &/*trsh*/, Level)
|
||||||
{ // Function for arbitrary level of nfp implementation
|
{ // Function for arbitrary level of nfp implementation
|
||||||
|
|
||||||
// TODO: implement
|
// TODO: implement
|
||||||
|
@ -33,7 +33,8 @@ public:
|
|||||||
PackResult(Item& item):
|
PackResult(Item& item):
|
||||||
item_ptr_(&item),
|
item_ptr_(&item),
|
||||||
move_(item.translation()),
|
move_(item.translation()),
|
||||||
rot_(item.rotation()) {}
|
rot_(item.rotation()),
|
||||||
|
overfit_(1.0) {}
|
||||||
|
|
||||||
PackResult(double overfit = 1.0):
|
PackResult(double overfit = 1.0):
|
||||||
item_ptr_(nullptr), overfit_(overfit) {}
|
item_ptr_(nullptr), overfit_(overfit) {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user