From 8dcc28c9ae1dead09367d76674ec81382e73b8b8 Mon Sep 17 00:00:00 2001 From: Marcio Teixeira Date: Thu, 20 Dec 2018 14:34:24 -0700 Subject: [PATCH] Squelch warning mentioned in #11061 (#12676) --- Marlin/src/module/planner.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Marlin/src/module/planner.cpp b/Marlin/src/module/planner.cpp index 9c618096c5..22a086ac56 100644 --- a/Marlin/src/module/planner.cpp +++ b/Marlin/src/module/planner.cpp @@ -1598,8 +1598,10 @@ void Planner::synchronize() { if (!changed_dir) return; #endif - const bool positive[XYZ] = { da > 0, db > 0, dc > 0 }, - non_zero[XYZ] = { da != 0, db != 0, dc != 0 }; + const bool positive[XYZ] = { da > 0, db > 0, dc > 0 }; + #ifdef BACKLASH_SMOOTHING_MM + const bool non_zero[XYZ] = { da != 0, db != 0, dc != 0 }; + #endif bool made_adjustment = false; LOOP_XYZ(i) {