Closed windfallw closed 1 year ago
hello, thank you for your report! just fixed it, please pull and try again~
hello, thank you for your report! just fixed it, please pull and try again~
Hi, I have tried the newest repo, now it works with platformio without unflag -Werror=all
.
just with some unused variable and multi-character character constant warnings, but that doesn't matter
Description
I'm trying to port this project to ESP32 using Platformio-espressif32 5.1.1 (ESP-IDF 4.4.1) , and I found that Platformio used -Werror flag for gcc compile which treat warning into an error.
xtensa-esp32-elf-gcc -o .pio/build/esp32dev/src/main.o -c -Og -Wall -Werror=all -Wextra -Wno-error=deprecated-declarations -Wno-error=unused-but-set-variable -Wno-error=unused-function -Wno-error=unused-variable -Wno-frame-address -Wno-old-style-declaration -Wno-sign-compare -Wno-unused-parameter -fdata-sections -ffunction-sections......
Although it can be simplely add
build_unflags = -Werror=all
inplatformio.ini
to make the compilation successful, but I think it is better to fix these warnings for compatibility.https://community.platformio.org/t/disable-warning-errors/13280/2
GCC output
tm_model.c
tm_stat.c
mnist.c
My solution