Suppress some compiler warnings, fix few possible bugs. (#6224)

* Supress warnings on unused functions an variables

Compilation of OrcaSlicer produces 3056 warnings.
Nearly half of them related to unused functions and variables.

It is unlikely we going to clean them up since we may want to
keep code base as close to the BBS as possible

* initialize class member with correct value

* Fix memset arguments order

* Merge multiple statemensts into single

* fix -Wpessimizing-move
This commit is contained in:
Dima Buzdyk 2024-08-02 20:56:23 +06:00 committed by GitHub
parent b1a06e80b3
commit 143d8c4a8d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 16 additions and 14 deletions

View file

@ -9,7 +9,7 @@ double Extruder::m_share_retracted = 0.;
Extruder::Extruder(unsigned int id, GCodeConfig *config, bool share_extruder) :
m_id(id),
m_config(config),
m_share_extruder(m_share_extruder)
m_share_extruder(share_extruder)
{
reset();