Browse Source

Flag unused variables without buzzer (#15016)

Tanguy Pruvot 5 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,12 +453,14 @@ void scroll_screen(const uint8_t limit, const bool is_menu) {
453 453
     #if HAS_BUZZER
454 454
       ui.completion_feedback(saved);
455 455
     #endif
456
+    UNUSED(saved);
456 457
   }
457 458
   void lcd_load_settings() {
458 459
     const bool loaded = settings.load();
459 460
     #if HAS_BUZZER
460 461
       ui.completion_feedback(loaded);
461 462
     #endif
463
+    UNUSED(loaded);
462 464
   }
463 465
 #endif
464 466
 

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

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

+ 1
- 1
platformio.ini View File

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

Loading…
Cancel
Save