I use gcc-gnu arm compiler 2019 q4 release. I've added -fno-short-enums compiler flag. It resulted in multiple warnings: "uses 32-bit enums yet the output is to use variable-size enums". Does anyone know the reason of this warning and how to handle it?
GCC documentation: https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html
So you're telling it not to generate short enums; ie, all enums will be a full int = 32 bits
DanielT said:uses 32-bit enums yet the output is to use variable-size enums
Have you tried just putting that into your favourite internet search engine?
Sounds like you have a conflict with some other settings which are expecting short enums ?
Thanks for your reply. I have searched for that in the web.
The most common answer is just to ignore this warning using linker flag.
However, I would like to understand the reason before I ignore this warning.
View all questions in Arm Compilers forum