My platformio.ini includes the following under “build_flags =” in the [env] section:
-Wno-error=deprecated-enum-enum-conversion
this used to work, but I had to reinstall VSC and Platformio today. Now it no longer works and my builds fail with this error from multiple places.
cc1plus.exe: error: -Werror=deprecated-enum-enum-conversion: no option -Wdeprecated-enum-enum-conversion
Why would -Wno-error no longer work correctly?
THANKS!
Full platformio.ini if you want to see it:
[platformio]
src_dir = .
default_envs = cyd
[env]
platform = espressif32@6.5.0
board = esp32dev
framework = arduino
lib_ldf_mode = deep
lib_extra_dirs = ~/Documents/Arduino/libraries
monitor_speed = 115200
monitor_filters = esp32_exception_decoder
upload_speed = 921600
board_build.partitions = min_spiffs.csv
build_flags =
-I./src/
-I./src/ui/
-DCORE_DEBUG_LEVEL=5
-Wno-error=deprecated-enum-enum-conversion
-fmax-errors=5
-DUSER_SETUP_LOADED
-DILI9341_2_DRIVER
-DUSE_HSPI_PORT
-DTFT_WIDTH=240
-DTFT_HEIGHT=320
-DTFT_MISO=12
-DTFT_MOSI=13
-DTFT_SCLK=14
-DTFT_CS=15
-DTFT_DC=2
-DTFT_RST=-1
-DTFT_BL=21
-DTFT_BACKLIGHT_ON=HIGH
-DTFT_BACKLIGHT_OFF=LOW
-DLOAD_GLCD
-DSPI_FREQUENCY=55000000
-DSPI_READ_FREQUENCY=20000000
-DSPI_TOUCH_FREQUENCY=2500000
-DLOAD_FONT2
-DLOAD_FONT4
-DLOAD_FONT6
-DLOAD_FONT7
-DLOAD_FONT8
-DLOAD_GFXFF
[env:cyd]
build_flags =
${env.build_flags}
-DTFT_INVERSION_OFF
lib_deps =
bodmer/TFT_eSPI@^2.5.42
https://github.com/PaulStoffregen/XPT2046_Touchscreen.git
lvgl/lvgl@^8.3.6
dfrobot/DFRobot_MPX5700@^1.0.0
mobizt/ESP Mail Client@^3.4.15
embeddronics-ltd/MS5837_30BA_Library@^1.0.0