2024-05-20 03:31 PM
Hello,
Getting a lot of these warnings in the ST generated code - prefer to be warning free, so legitimate, application code warnings are more obvious.
I don't see the ability to suppress individual occurrences, and don't want to remove -Wregister completely. Is there any alternative?
Please advise,
Robert
2024-05-20 04:09 PM
Apply a different C/C++ standard
Use a #define pre-processor for register to remove it
Have a script clean the generated source or libraries to meet your own standards
2024-05-20 04:31 PM
Thanks for the reply
Apply a different C/C++ standard
->That's the standard I would like to use
Use a #define pre-processor for register to remove it
-> it is ST generated code that is over-written, with any change
Have a script clean the generated source or libraries to meet your own standards
-> should that, or the other suggestions, be required to clean-up warnings from vendor code. I assume that ST compiles their code and are aware of these warnings. I see from a search, I'm not the first to point it out.
Regards,
Robert
2024-05-20 05:23 PM
Well something has to change..
I'd wager you're probably likely to be more nimble than ST