Pārlūkot izejas kodu

Suppress more UNUSED warnings (#14466)

Marcio Teixeira 6 gadus atpakaļ
vecāks
revīzija
16409eb233

+ 1
- 0
Marlin/src/HAL/HAL_DUE/MarlinSerialUSB_Due.cpp Parādīt failu

56
 
56
 
57
 // Public Methods
57
 // Public Methods
58
 void MarlinSerialUSB::begin(const long baud_setting) {
58
 void MarlinSerialUSB::begin(const long baud_setting) {
59
+  UNUSED(baud_setting);
59
 }
60
 }
60
 
61
 
61
 void MarlinSerialUSB::end() {
62
 void MarlinSerialUSB::end() {

+ 1
- 0
Marlin/src/HAL/HAL_DUE/usb/sd_mmc_spi_mem.cpp Parādīt failu

34
 }
34
 }
35
 
35
 
36
 bool sd_mmc_spi_unload(bool unload) {
36
 bool sd_mmc_spi_unload(bool unload) {
37
+  UNUSED(unload);
37
   return true;
38
   return true;
38
 }
39
 }
39
 
40
 

+ 7
- 7
Marlin/src/HAL/HAL_DUE/usb/usb_task.c Parādīt failu

75
   bool usb_task_msc_isenabled(void)             { return main_b_msc_enable; }
75
   bool usb_task_msc_isenabled(void)             { return main_b_msc_enable; }
76
 #endif
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
 bool usb_task_cdc_isenabled(void)             { return main_b_cdc_enable; }
80
 bool usb_task_cdc_isenabled(void)             { return main_b_cdc_enable; }
81
 
81
 
82
 /*! \brief Called by CDC interface
82
 /*! \brief Called by CDC interface
83
  * Callback running when CDC device have received data
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
 /*! \brief Configures communication line
87
 /*! \brief Configures communication line
88
  *
88
  *
90
  */
90
  */
91
 static uint16_t dwDTERate = 0;
91
 static uint16_t dwDTERate = 0;
92
 void usb_task_cdc_config(const uint8_t port, usb_cdc_line_coding_t *cfg) {
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
 void usb_task_cdc_set_dtr(const uint8_t port, const bool b_enable) {
98
 void usb_task_cdc_set_dtr(const uint8_t port, const bool b_enable) {
99
-
99
+  UNUSED(port);
100
   // Keep DTR status
100
   // Keep DTR status
101
   main_b_dtr_active = b_enable;
101
   main_b_dtr_active = b_enable;
102
 
102
 

Notiek ielāde…
Atcelt
Saglabāt