Browse Source

Hide some compile warnings

Scott Lahteine 6 years ago
parent
commit
29c53f2402
2 changed files with 7 additions and 2 deletions
  1. 3
    2
      Marlin/src/feature/runout.h
  2. 4
    0
      Marlin/src/module/probe.cpp

+ 3
- 2
Marlin/src/feature/runout.h View File

@@ -217,6 +217,7 @@ class FilamentSensorBase {
217 217
       static bool poll_runout_pin(const uint8_t extruder) {
218 218
         const uint8_t runout_bits = poll_runout_pins();
219 219
         #if NUM_RUNOUT_SENSORS == 1
220
+          UNUSED(extruder);
220 221
           return runout_bits;                     // A single sensor applying to all extruders
221 222
         #else
222 223
           #if ENABLED(DUAL_X_CARRIAGE)
@@ -233,7 +234,7 @@ class FilamentSensorBase {
233 234
       }
234 235
 
235 236
     public:
236
-      static inline void block_completed(const block_t* const b) {}
237
+      static inline void block_completed(const block_t* const b) { UNUSED(b); }
237 238
 
238 239
       static inline void run() {
239 240
         const bool out = poll_runout_pin(active_extruder);
@@ -313,7 +314,7 @@ class FilamentSensorBase {
313 314
       static inline void reset()                                  { runout_count = runout_threshold; }
314 315
       static inline void run()                                    { runout_count--; }
315 316
       static inline bool has_run_out()                            { return runout_count < 0; }
316
-      static inline void block_completed(const block_t* const b)  {}
317
+      static inline void block_completed(const block_t* const b)  { UNUSED(b); }
317 318
       static inline void filament_present(const uint8_t extruder) { runout_count = runout_threshold; UNUSED(extruder); }
318 319
   };
319 320
 

+ 4
- 0
Marlin/src/module/probe.cpp View File

@@ -405,6 +405,10 @@ FORCE_INLINE void probe_specific_action(const bool deploy) {
405 405
 
406 406
     do_blocking_move_to_x(deploy ? Z_PROBE_DEPLOY_X : Z_PROBE_RETRACT_X);
407 407
 
408
+  #elif DISABLED(PAUSE_BEFORE_DEPLOY_STOW)
409
+
410
+    UNUSED(deploy);
411
+
408 412
   #endif
409 413
 }
410 414
 

Loading…
Cancel
Save