From 2f7716987d8d0520a49131168a07de30da1186c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Br=C3=A1zio?= Date: Fri, 22 Jul 2016 16:08:56 +0100 Subject: [PATCH] Fix minor gcc warning --- Marlin/Marlin_main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index c07c48dbf..9ffd1ec9f 100644 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -6671,7 +6671,6 @@ inline void invalid_extruder_error(const uint8_t &e) { } void tool_change(const uint8_t tmp_extruder, const float fr_mm_m/*=0.0*/, bool no_move/*=false*/) { - #if ENABLED(MIXING_EXTRUDER) && MIXING_VIRTUAL_TOOLS > 1 if (tmp_extruder >= MIXING_VIRTUAL_TOOLS) { @@ -6951,6 +6950,9 @@ void tool_change(const uint8_t tmp_extruder, const float fr_mm_m/*=0.0*/, bool n // Set the new active extruder active_extruder = tmp_extruder; + UNUSED(fr_mm_m); + UNUSED(no_move); + #endif // HOTENDS <= 1 SERIAL_ECHO_START;