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
       static bool poll_runout_pin(const uint8_t extruder) {
217
       static bool poll_runout_pin(const uint8_t extruder) {
218
         const uint8_t runout_bits = poll_runout_pins();
218
         const uint8_t runout_bits = poll_runout_pins();
219
         #if NUM_RUNOUT_SENSORS == 1
219
         #if NUM_RUNOUT_SENSORS == 1
220
+          UNUSED(extruder);
220
           return runout_bits;                     // A single sensor applying to all extruders
221
           return runout_bits;                     // A single sensor applying to all extruders
221
         #else
222
         #else
222
           #if ENABLED(DUAL_X_CARRIAGE)
223
           #if ENABLED(DUAL_X_CARRIAGE)
233
       }
234
       }
234
 
235
 
235
     public:
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
       static inline void run() {
239
       static inline void run() {
239
         const bool out = poll_runout_pin(active_extruder);
240
         const bool out = poll_runout_pin(active_extruder);
313
       static inline void reset()                                  { runout_count = runout_threshold; }
314
       static inline void reset()                                  { runout_count = runout_threshold; }
314
       static inline void run()                                    { runout_count--; }
315
       static inline void run()                                    { runout_count--; }
315
       static inline bool has_run_out()                            { return runout_count < 0; }
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
       static inline void filament_present(const uint8_t extruder) { runout_count = runout_threshold; UNUSED(extruder); }
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
 
405
 
406
     do_blocking_move_to_x(deploy ? Z_PROBE_DEPLOY_X : Z_PROBE_RETRACT_X);
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
   #endif
412
   #endif
409
 }
413
 }
410
 
414
 

Loading…
Cancel
Save