mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 21:16:01 +08:00
Fixed compiler warnings
This commit is contained in:
parent
a3d10f7f50
commit
32e70e5f57
@ -297,7 +297,7 @@ bool PressureEqualizer::process_line(const char *line, const char *line_end, GCo
|
|||||||
// G92 : Set Position
|
// G92 : Set Position
|
||||||
// Set a logical coordinate position to a new value without actually moving the machine motors.
|
// Set a logical coordinate position to a new value without actually moving the machine motors.
|
||||||
// Which axes to set?
|
// Which axes to set?
|
||||||
bool set = false;
|
[[maybe_unused]]bool set = false;
|
||||||
while (!is_eol(*line)) {
|
while (!is_eol(*line)) {
|
||||||
char axis = toupper(*line++);
|
char axis = toupper(*line++);
|
||||||
switch (axis) {
|
switch (axis) {
|
||||||
@ -340,11 +340,7 @@ bool PressureEqualizer::process_line(const char *line, const char *line_end, GCo
|
|||||||
case 'M': {
|
case 'M': {
|
||||||
int mcode = parse_int(line);
|
int mcode = parse_int(line);
|
||||||
eatws(line);
|
eatws(line);
|
||||||
switch (mcode) {
|
// Ignore the rest of the M-codes.
|
||||||
default:
|
|
||||||
// Ignore the rest of the M-codes.
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 'T':
|
case 'T':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user