From 32e70e5f57246280892dac005bdc58b0c7fec1c8 Mon Sep 17 00:00:00 2001 From: Lukas Matena Date: Fri, 17 Jun 2022 16:27:49 +0200 Subject: [PATCH] Fixed compiler warnings --- src/libslic3r/GCode/PressureEqualizer.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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':