Platform
ESP32
IDE / Tooling
Platformio with esp arduino framework.
What happened?
If one has format warnings turned on, there is a new warning that occurs in versions 3.9.x for my ESP32 device. Like the 8266 a uint32_t is a standard unsigned int and just needs the %x formatter.
Code in question:
https://github.com/ESP32Async/ESPAsyncWebServer/blob/main/src/WebHandlers.cpp#L241
Stack Trace
.pio/libdeps/deployment/ESPAsyncWebServer/src/WebHandlers.cpp:241:34: error: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 'uint32_t' {aka 'unsigned int'} [-Werror=format=]
snprintf(etag, sizeof(etag), "%08lx", etagValue);
Minimal Reproductible Example (MRE)
Add -Wformat=2 to the platformio.ini build_flags section
I confirm that:
Platform
ESP32
IDE / Tooling
Platformio with esp arduino framework.
What happened?
If one has format warnings turned on, there is a new warning that occurs in versions 3.9.x for my ESP32 device. Like the 8266 a uint32_t is a standard unsigned int and just needs the %x formatter.
Code in question:
https://github.com/ESP32Async/ESPAsyncWebServer/blob/main/src/WebHandlers.cpp#L241
Stack Trace
Minimal Reproductible Example (MRE)
Add
-Wformat=2to the platformio.ini build_flags sectionI confirm that: