From 55a47d57daba1f6b9471cf92497ba5d96cb8605f Mon Sep 17 00:00:00 2001 From: Marek Bel Date: Mon, 6 Aug 2018 16:57:45 +0200 Subject: [PATCH] Fix compiler warning: sketch/Marlin.h:151:25: warning: suggest braces around empty body in an 'if' statement [-Wempty-body] --- Firmware/Marlin.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Firmware/Marlin.h b/Firmware/Marlin.h index 2bbab987..a883343d 100644 --- a/Firmware/Marlin.h +++ b/Firmware/Marlin.h @@ -148,7 +148,7 @@ void manage_inactivity(bool ignore_stepper_queue=false); #define disable_z() { WRITE(Z_ENABLE_PIN,!Z_ENABLE_ON); WRITE(Z2_ENABLE_PIN,!Z_ENABLE_ON); axis_known_position[Z_AXIS] = false; } #else #define enable_z() WRITE(Z_ENABLE_PIN, Z_ENABLE_ON) - #define disable_z() ; + #define disable_z() {} #endif #else #ifdef Z_DUAL_STEPPER_DRIVERS @@ -160,8 +160,8 @@ void manage_inactivity(bool ignore_stepper_queue=false); #endif #endif #else - #define enable_z() ; - #define disable_z() ; + #define enable_z() {} + #define disable_z() {} #endif @@ -475,4 +475,4 @@ void M600_load_filament(); void mmu_M600_load_filament(bool automatic); void M600_load_filament_movements(); void M600_wait_for_user(); -void M600_check_state(); \ No newline at end of file +void M600_check_state();