- will be automatically fixed once a new stable Arduino-ESP32 version releases, per HAL/SPI initializes from incompatible pointer type. · Issue #5039 · espressif/arduino-esp32 · GitHub, new code is this
- if you want to silence the warning locally, you can directly fix it at the source (
/Users/janhkila/.platformio/packages/framework-arduinoespressif32/cores/esp32/esp32-hal-spi.c
), this fixes it globally for all projects - You can try and pass the
-Wno-incompatible-pointer-types
(docs) in thebuild_flags
for a per-project fix.