We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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?
DanielT said:fno-short-enums
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 ?
Hi,
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.
Regards,
Daniel