From 9edb07afa5ffd212573e54d64e5ce9f21dbe0beb Mon Sep 17 00:00:00 2001 From: Marek Bel <marek.bel@posta.cz> Date: Tue, 24 Jul 2018 16:54:12 +0200 Subject: [PATCH] Fix compiler warning sketch/Marlin_main.cpp:4218:10: warning: variable 'verbosity_level' set but not used [-Wunused-but-set-variable] --- Firmware/Marlin_main.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Firmware/Marlin_main.cpp b/Firmware/Marlin_main.cpp index b5e71762..99536948 100644 --- a/Firmware/Marlin_main.cpp +++ b/Firmware/Marlin_main.cpp @@ -4215,14 +4215,16 @@ void process_commands() case_G80: { mesh_bed_leveling_flag = true; - int8_t verbosity_level = 0; - static bool run = false; + static bool run = false; +#ifdef SUPPORT_VERBOSITY + int8_t verbosity_level = 0; if (code_seen('V')) { // Just 'V' without a number counts as V1. char c = strchr_pointer[1]; verbosity_level = (c == ' ' || c == '\t' || c == 0) ? 1 : code_value_short(); } +#endif //SUPPORT_VERBOSITY // Firstly check if we know where we are if (!(axis_known_position[X_AXIS] && axis_known_position[Y_AXIS] && axis_known_position[Z_AXIS])) { // We don't know where we are! HOME!