arendst / Tasmota

Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
https://tasmota.github.io/docs
GNU General Public License v3.0
22.04k stars 4.78k forks source link

warning: unrecognized command line option '-Wno-volatile' when compiling Tasmota/lib/libesp32_lvgl/lvgl/src/widgets/lv_checkbox.c #19873

Closed gneiss15 closed 11 months ago

gneiss15 commented 11 months ago

PROBLEM DESCRIPTION

A clear and concise description of what the problem is. When compiling Tasmota (using VSCode & Platformio) I get the following "warning": Retrieved `.pio/build/tasmota32-DE/lib193/lvgl/widgets/lv_checkbox.c.o' from cache cc1plus: warning: unrecognized command line option '-Wno-volatile'

REQUESTED INFORMATION

Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!

- [x] If using rules, provide the output of this command: `Backlog Rule1; Rule2; Rule3`:
```lua
  Rules output here:
not relevant
- [x] Set `weblog` to 4 and then, when you experience your issue, provide the output of the Console log:
```lua
  Console output here:

TO REPRODUCE

Steps to reproduce the behavior:

Use "build" inside VSCode

EXPECTED BEHAVIOUR

A clear and concise description of what you expected to happen.

No Waring

SCREENSHOTS

If applicable, add screenshots to help explain your problem.

ADDITIONAL CONTEXT

Add any other context about the problem here. Unfortunally I couldn't figure out why the build-process uses the CXXFLAGS when compiling (only this) file.. I figured out that this compiler option was only set by "pio-tools/add_c_flags.py", but I don't find why this was applied when compiling "Tasmota/lib/libesp32_lvgl/lvgl/src/widgets/lv_checkbox.c". It seams that this file was compiled in C++ Mode even it is a c file ??

(Please, remember to close the issue when the problem has been addressed)

s-hadinger commented 11 months ago

I will check, but I don't remember seeing this warning

sfromis commented 11 months ago

I'm seeing the warning all the time when building for ESP32, and haven't worried about it :smile_cat: