cancel
Showing results for 
Search instead for 
Did you mean: 

ST generated code warning

R_DSP
Associate II

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. 

R_DSP_0-1716244187560.png

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

 

 

3 REPLIES 3

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

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

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

Well something has to change..

I'd wager you're probably likely to be more nimble than ST

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..