Skip to main content
Associate II
Question

ST generated code warning

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

 

 

    This topic has been closed for replies.

    3 replies

    Tesla DeLorean
    Guru

    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
    R_DSPAuthor
    Associate II

    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

    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..