Browse Source

Flag unused variables without buzzer (#15016)

Tanguy Pruvot 4 years ago
parent
commit
0a280f00c2
3 changed files with 4 additions and 1 deletions
  1. 2
    0
      Marlin/src/lcd/menu/menu.cpp
  2. 1
    0
      Marlin/src/lcd/menu/menu_advanced.cpp
  3. 1
    1
      platformio.ini

+ 2
- 0
Marlin/src/lcd/menu/menu.cpp View File

453
     #if HAS_BUZZER
453
     #if HAS_BUZZER
454
       ui.completion_feedback(saved);
454
       ui.completion_feedback(saved);
455
     #endif
455
     #endif
456
+    UNUSED(saved);
456
   }
457
   }
457
   void lcd_load_settings() {
458
   void lcd_load_settings() {
458
     const bool loaded = settings.load();
459
     const bool loaded = settings.load();
459
     #if HAS_BUZZER
460
     #if HAS_BUZZER
460
       ui.completion_feedback(loaded);
461
       ui.completion_feedback(loaded);
461
     #endif
462
     #endif
463
+    UNUSED(loaded);
462
   }
464
   }
463
 #endif
465
 #endif
464
 
466
 

+ 1
- 0
Marlin/src/lcd/menu/menu_advanced.cpp View File

608
           #if HAS_BUZZER
608
           #if HAS_BUZZER
609
             ui.completion_feedback(inited);
609
             ui.completion_feedback(inited);
610
           #endif
610
           #endif
611
+          UNUSED(inited);
611
         },
612
         },
612
         ui.goto_previous_screen,
613
         ui.goto_previous_screen,
613
         PSTR(MSG_INIT_EEPROM), nullptr, PSTR("?")
614
         PSTR(MSG_INIT_EEPROM), nullptr, PSTR("?")

+ 1
- 1
platformio.ini View File

366
 build_unflags = -std=gnu++11 -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1
366
 build_unflags = -std=gnu++11 -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1
367
 src_filter    = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
367
 src_filter    = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
368
 lib_deps      = ${common.lib_deps}
368
 lib_deps      = ${common.lib_deps}
369
-lib_ignore    = Adafruit NeoPixel, SPI
369
+lib_ignore    = Adafruit NeoPixel, LiquidTWI2, SPI
370
 
370
 
371
 #
371
 #
372
 # MKS Robin (STM32F103ZET6)
372
 # MKS Robin (STM32F103ZET6)

Loading…
Cancel
Save