Fixed compiler warnings

This commit is contained in:
Lukas Matena 2022-06-17 16:27:49 +02:00
parent a3d10f7f50
commit 32e70e5f57

View File

@ -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':