From 42893b7a941a4d461377ca47981cc69ea878b7a9 Mon Sep 17 00:00:00 2001 From: Marek Bel Date: Fri, 13 Jul 2018 20:47:40 +0200 Subject: [PATCH] Fix compiler warnings: sketch/Marlin_main.cpp:806:6: warning: unused variable 'cursor_pos' [-Wunused-variable] sketch/Marlin_main.cpp:1922:7: warning: unused variable 'stack_integrity' [-Wunused-variable] sketch/Marlin_main.cpp:4254:8: warning: unused variable 'clamped' [-Wunused-variable] --- Firmware/Marlin_main.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Firmware/Marlin_main.cpp b/Firmware/Marlin_main.cpp index 11c1c6e3..951467d6 100644 --- a/Firmware/Marlin_main.cpp +++ b/Firmware/Marlin_main.cpp @@ -803,7 +803,6 @@ int er_progress = 0; void factory_reset(char level, bool quiet) { lcd_implementation_clear(); - int cursor_pos = 0; switch (level) { // Level 0: Language reset @@ -1920,7 +1919,6 @@ void host_keepalive() { void loop() { KEEPALIVE_STATE(NOT_BUSY); - bool stack_integrity = true; if ((usb_printing_counter > 0) && ((millis()-_usb_timer) > 1000)) { @@ -4254,10 +4252,11 @@ void process_commands() // The move to the first calibration point. current_position[X_AXIS] = pgm_read_float(bed_ref_points); current_position[Y_AXIS] = pgm_read_float(bed_ref_points + 1); - bool clamped = world2machine_clamp(current_position[X_AXIS], current_position[Y_AXIS]); #ifdef SUPPORT_VERBOSITY - if (verbosity_level >= 1) { + if (verbosity_level >= 1) + { + bool clamped = world2machine_clamp(current_position[X_AXIS], current_position[Y_AXIS]); clamped ? SERIAL_PROTOCOLPGM("First calibration point clamped.\n") : SERIAL_PROTOCOLPGM("No clamping for first calibration point.\n"); } #endif //SUPPORT_VERBOSITY