From e6dcbedf822dcd85180f45200f513df11d37aae3 Mon Sep 17 00:00:00 2001 From: Marek Bel Date: Wed, 25 Jul 2018 11:58:48 +0200 Subject: [PATCH] Fix compiler warning: sketch/Marlin_main.cpp:8833:16: warning: variable 'nplanner_blocks' set but not used [-Wunused-but-set-variable] --- Firmware/Marlin_main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Firmware/Marlin_main.cpp b/Firmware/Marlin_main.cpp index d93a8408..34a12101 100644 --- a/Firmware/Marlin_main.cpp +++ b/Firmware/Marlin_main.cpp @@ -8830,7 +8830,9 @@ enquecommand_P(PSTR("G4 S0")); void stop_and_save_print_to_ram(float z_move, float e_move) { if (saved_printing) return; +#if 0 unsigned char nplanner_blocks; +#endif unsigned char nlines; uint16_t sdlen_planner; uint16_t sdlen_cmdqueue; @@ -8838,7 +8840,9 @@ void stop_and_save_print_to_ram(float z_move, float e_move) cli(); if (card.sdprinting) { +#if 0 nplanner_blocks = number_of_blocks(); +#endif saved_sdpos = sdpos_atomic; //atomic sd position of last command added in queue sdlen_planner = planner_calc_sd_length(); //length of sd commands in planner saved_sdpos -= sdlen_planner;