mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
27fe437412
At -O2 optimization level, GCC seems to optimize out the copying of the first byte of the checksum, assuming it is zero. This "miscompilation" happens because the esp_app_desc struct is declared const, but then modified post-compilation. Casting to volatile disables the optimization. Closes: https://github.com/espressif/esp-idf/pull/6389 |
||
---|---|---|
.. | ||
include | ||
test | ||
CMakeLists.txt | ||
component.mk | ||
esp_app_desc.c | ||
esp_ota_ops.c | ||
Kconfig.projbuild | ||
Makefile.projbuild | ||
otatool.py |