Browse Source

Suppress more UNUSED warnings (#14466)

Marcio Teixeira 4 years ago
parent
commit
16409eb233

+ 1
- 0
Marlin/src/HAL/HAL_DUE/MarlinSerialUSB_Due.cpp View File

@@ -56,6 +56,7 @@ static int pending_char = -1;
56 56
 
57 57
 // Public Methods
58 58
 void MarlinSerialUSB::begin(const long baud_setting) {
59
+  UNUSED(baud_setting);
59 60
 }
60 61
 
61 62
 void MarlinSerialUSB::end() {

+ 1
- 0
Marlin/src/HAL/HAL_DUE/usb/sd_mmc_spi_mem.cpp View File

@@ -34,6 +34,7 @@ Ctrl_status sd_mmc_spi_read_capacity(uint32_t *nb_sector) {
34 34
 }
35 35
 
36 36
 bool sd_mmc_spi_unload(bool unload) {
37
+  UNUSED(unload);
37 38
   return true;
38 39
 }
39 40
 

+ 7
- 7
Marlin/src/HAL/HAL_DUE/usb/usb_task.c View File

@@ -75,14 +75,14 @@ void usb_task_idle(void) {
75 75
   bool usb_task_msc_isenabled(void)             { return main_b_msc_enable; }
76 76
 #endif
77 77
 
78
-bool usb_task_cdc_enable(const uint8_t port)  { return ((main_b_cdc_enable = true)); }
79
-void usb_task_cdc_disable(const uint8_t port) { main_b_cdc_enable = false; main_b_dtr_active = false; }
78
+bool usb_task_cdc_enable(const uint8_t port)  { UNUSED(port); return ((main_b_cdc_enable = true)); }
79
+void usb_task_cdc_disable(const uint8_t port) { UNUSED(port); main_b_cdc_enable = false; main_b_dtr_active = false; }
80 80
 bool usb_task_cdc_isenabled(void)             { return main_b_cdc_enable; }
81 81
 
82 82
 /*! \brief Called by CDC interface
83 83
  * Callback running when CDC device have received data
84 84
  */
85
-void usb_task_cdc_rx_notify(const uint8_t port) { }
85
+void usb_task_cdc_rx_notify(const uint8_t port) { UNUSED(port); }
86 86
 
87 87
 /*! \brief Configures communication line
88 88
  *
@@ -90,13 +90,13 @@ void usb_task_cdc_rx_notify(const uint8_t port) { }
90 90
  */
91 91
 static uint16_t dwDTERate = 0;
92 92
 void usb_task_cdc_config(const uint8_t port, usb_cdc_line_coding_t *cfg) {
93
-    // Store last DTE rate
94
-    dwDTERate = cfg->dwDTERate;
93
+  UNUSED(port);
94
+  // Store last DTE rate
95
+  dwDTERate = cfg->dwDTERate;
95 96
 }
96 97
 
97
-
98 98
 void usb_task_cdc_set_dtr(const uint8_t port, const bool b_enable) {
99
-
99
+  UNUSED(port);
100 100
   // Keep DTR status
101 101
   main_b_dtr_active = b_enable;
102 102
 

Loading…
Cancel
Save