Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] front_panel_hal.h:197:10: warning: '++' expression of 'volatile'-qualified type is deprecated [-Wvolatile] #132

Open
derMicro opened this issue Nov 21, 2024 · 2 comments

Comments

@derMicro
Copy link

Describe the bug
Compiling .pioenvs/p-kz-ble-sleeplight/bootloader_support/bootloader_flash/src/bootloader_flash_config_esp32.c.o
In file included from src/esphome/components/xiaomi_bslamp2/binary_sensor/touch_binary_sensor.h:4,
from src/esphome.h:110,
from src/main.cpp:3:
src/esphome/components/xiaomi_bslamp2/binary_sensor/../front_panel_hal.h: In static member function 'static void esphome::xiaomi::bslamp2::FrontPanelTriggerStore::gpio_intr(esphome::xiaomi::bslamp2::FrontPanelTriggerStore*)':
src/esphome/components/xiaomi_bslamp2/binary_sensor/../front_panel_hal.h:197:10: warning: '++' expression of 'volatile'-qualified type is deprecated [-Wvolatile]
197 | store->event_id++;
| ~~~~~~~^~~~~~~~

To Reproduce
Steps to reproduce the behavior:
Compile with

  framework:
    type: esp-idf
    version: 5.3.1
    platform_version: 6.9.0
@mmakaay
Copy link
Owner

mmakaay commented Dec 4, 2024

Interesting. The firmware compiles and works, since this is just a deprecation warning at this point, right?
I will update the code to fix this warning.

@derMicro
Copy link
Author

derMicro commented Dec 9, 2024

Yes, it's just a warning, this issue is for information only :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants