Closed iDoka closed 3 years ago
Don't blame your compiler for these warnings, please.
It does the right thing™ and it's better to fix the code instead (data[]
instead of data[0]
).
Fair point, data[]
is by any means the cleanest way to define flexible size arrays. Please test the linked PR.
As for the compiler version, I use arm-none-eabi-gcc (GNU Arm Embedded Toolchain 9-2020-q2-update) 9.3.1 20200408 (release) on my Mac which I use for development, and gcc-arm-none-eabi_15%3a9-2019-q4-0ubuntu1_amd64, which is used in GitHub actions. None of them shows this warning.
I checked your PR.
Now gcc-arm-none-eabi-10-2020-q4-major
works fine without any warnings.
Thanks for your quick fix!
Thank you!
What is your experience to building project with various versions of gcc-arm-none-eabi?
I tried
gcc-arm-none-eabi-10-2020-q4-major
and have some warnings:Maybe exists version of gcc-arm-none-eabi which works fine w/o these warnings?