From 5b5c44b52307ea7a5a16d0e76b4f930b4a34006b Mon Sep 17 00:00:00 2001 From: David Forrest Date: Mon, 24 Mar 2014 23:14:02 -0400 Subject: [PATCH] dda_lookahead.c: Eliminate debug crossF variable compile warning. Fix: dda_lookahead.c:327:17: warning: 'crossF' may be used uninitialized in this function [-Wmaybe-uninitialized] sersendf_P(PSTR("Initial crossing speed: %lu\n"), crossF); ^ --- dda_lookahead.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dda_lookahead.c b/dda_lookahead.c index 9b76c57..37543ce 100644 --- a/dda_lookahead.c +++ b/dda_lookahead.c @@ -324,7 +324,7 @@ void dda_join_moves(DDA *prev, DDA *current) { // Show the proposed crossing speed - this might get adjusted below. if (DEBUG_DDA && (debug_flags & DEBUG_DDA)) - sersendf_P(PSTR("Initial crossing speed: %lu\n"), crossF); + sersendf_P(PSTR("Initial crossing speed: %lu\n"), current->crossF); // Make sure we have 2 moves and the previous move is not already active if (prev->live == 0) {