I am using an external component with espidf and it seems that there are a few GCC -Werror=
flags (e.g. -Werror=unused-const-variable
and -Werror=format-truncation
) that prevents it from building:
components/lcd/Adafruit-GFX-Library/glcdfont.c:18:28: error: 'font' defined but not used [-Werror=unused-const-variable=]
components/lcd/iot_lcd.cpp:511:36: error: 'snprintf' output may be truncated before the last format character [-Werror=format-truncation=]
How can I disable these flags? I tried stuff like setting build_unflags
in platformio.ini without success so far:
build_unflags = -Werror=unused-const-variable
I was also unable to locate where these flags were configured in the first place.
Thanks for your help.