Skip to content

Comments

language_pt-br_utf8 warnings due to extra tokens at end of #else directive#15013

Merged
thinkyhead merged 1 commit intoMarlinFirmware:bugfix-1.1.xfrom
souza-david:feature/language_pt_br_utf8_small_lcd_height
Aug 21, 2019
Merged

language_pt-br_utf8 warnings due to extra tokens at end of #else directive#15013
thinkyhead merged 1 commit intoMarlinFirmware:bugfix-1.1.xfrom
souza-david:feature/language_pt_br_utf8_small_lcd_height

Conversation

@souza-david
Copy link

When the LCD language is changed to pt-br_utf8, we get a lot of warns.
It is because of the extra tokens at end of the #else directive.

Description
After changing the LCD language to pt-br_utf8:
#define LCD_LANGUAGE pt-br_utf8
It will give us a warn:

In file included from sketch/language.h:317:0,
from sketch/MarlinConfig.h:44,
from sketch/ubl_motion.cpp:22:
sketch/language_pt-br_utf8.h:374:7: warning: extra tokens at end of #else directive [-Wendif-labels]
#else LCD_HEIGHT < 4
^

To fix it, we need to comment out the "LCD_HEIGHT < 4" as on the language_en.h file.
#else // LCD_HEIGHT < 4

Benefits
It removes all the warns related with the extra tokens at end of #else directive

Fix language_pt-br_utf8 warnings due to extra tokens at end of #else directive
@thinkyhead thinkyhead force-pushed the feature/language_pt_br_utf8_small_lcd_height branch from d995ff6 to a412224 Compare August 21, 2019 08:38
@thinkyhead thinkyhead merged commit 029467f into MarlinFirmware:bugfix-1.1.x Aug 21, 2019
@souza-david souza-david deleted the feature/language_pt_br_utf8_small_lcd_height branch August 21, 2019 22:40
thinkyhead pushed a commit that referenced this pull request Sep 2, 2019
TiagoJustino added a commit to TiagoJustino/Marlin that referenced this pull request Apr 2, 2020
* MarlinFirmware/1.1.x: (133 commits)
  Fix Z position after ABL bilinear G29 with fade (MarlinFirmware#17174)
  Change DUMMY_PID_VALUE to NAN (MarlinFirmware#17079)
  Disable integration testing
  Enable DUAL_NOZZLE_DUPLICATION_MODE (MarlinFirmware#16436)
  [1.1.x] Polish language UTF8 (MarlinFirmware#16141)
  Links for the "New Issue" page
  Add Korean language (MarlinFirmware#15918)
  [1.1.x] MKS_GEN_L_V2 controller (MarlinFirmware#15805)
  Update bug_report.md
  [1.1.x] Fix autostart w/out SD_DETECT_PIN (MarlinFirmware#15667)
  [1.1.x] RAMPS + Viki1 LCD compatibility (MarlinFirmware#15736)
  [1.1.x] Fix compiler warning (MarlinFirmware#15642)
  [1.1.x] Fix for G2/G3 rounding error (MarlinFirmware#15546)
  Let MINIPANEL use SW SPI if needed (MarlinFirmware#15246)
  Fix BLTouch debugging (MarlinFirmware#15232)
  Fix Creality bed thermistor
  Fix PT-BR strings (MarlinFirmware#15023)
  Fix #else extra tokens (MarlinFirmware#15013)
  [1.1.x] Autobuild formatting (MarlinFirmware#14858)
  [1.1.x] BLTouch 3.0 - 3.1 (MarlinFirmware#14839)
  ...
maz3max pushed a commit to maz3max/Marlin that referenced this pull request Aug 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants