diff --git a/src/libslic3r/GCode/PressureEqualizer.cpp b/src/libslic3r/GCode/PressureEqualizer.cpp index 6771d0e050..b5a3cce33e 100644 --- a/src/libslic3r/GCode/PressureEqualizer.cpp +++ b/src/libslic3r/GCode/PressureEqualizer.cpp @@ -297,7 +297,7 @@ bool PressureEqualizer::process_line(const char *line, const char *line_end, GCo // G92 : Set Position // Set a logical coordinate position to a new value without actually moving the machine motors. // Which axes to set? - bool set = false; + [[maybe_unused]]bool set = false; while (!is_eol(*line)) { char axis = toupper(*line++); switch (axis) { @@ -340,11 +340,7 @@ bool PressureEqualizer::process_line(const char *line, const char *line_end, GCo case 'M': { int mcode = parse_int(line); eatws(line); - switch (mcode) { - default: - // Ignore the rest of the M-codes. - break; - } + // Ignore the rest of the M-codes. break; } case 'T':