Ver código fonte

cleanup: Suppress unused argument warnings

Yuri D'Elia 2 anos atrás
pai
commit
c7b6b9a99b
2 arquivos alterados com 4 adições e 2 exclusões
  1. 2 0
      Firmware/mmu2.cpp
  2. 2 2
      Firmware/mmu2_reporting.cpp

+ 2 - 0
Firmware/mmu2.cpp

@@ -380,6 +380,8 @@ bool MMU2::set_filament_type(uint8_t index, uint8_t type) {
         return false;
     
     // @@TODO - this is not supported in the new MMU yet
+    index = index; // @@TODO
+    type = type; // @@TODO
     // cmd_arg = filamentType;
     // command(MMU_CMD_F0 + index);
 

+ 2 - 2
Firmware/mmu2_reporting.cpp

@@ -13,12 +13,12 @@ namespace MMU2 {
 
 const char * ProgressCodeToText(uint16_t pc); // we may join progress convertor and reporter together
 
-void BeginReport(CommandInProgress cip, uint16_t ec) {
+void BeginReport(CommandInProgress /*cip*/, uint16_t ec) {
     custom_message_type = CustomMsg::MMUProgress;
     lcd_setstatuspgm( _T(ProgressCodeToText(ec)) );
 }
 
-void EndReport(CommandInProgress cip, uint16_t ec) {
+void EndReport(CommandInProgress /*cip*/, uint16_t /*ec*/) {
     // clear the status msg line - let the printed filename get visible again
     custom_message_type = CustomMsg::Status;
 }