Skip to main content
Associate II
May 20, 2024
Question

ST generated code warning

  • May 20, 2024
  • 1 reply
  • 1185 views

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

 

 

1 reply

Tesla DeLorean
Guru
May 20, 2024

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 VenmoUp vote any posts that you find helpful, it shows what's working..
R_DSPAuthor
Associate II
May 20, 2024

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

Tesla DeLorean
Guru
May 21, 2024

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 VenmoUp vote any posts that you find helpful, it shows what's working..