I'm using uV 4.70.0.0, compiler version is 5.03.0.24.
Is there a way to disable specific warnings? In other Keil toolchains I seem to remember there was a command-line control that allowed this. I can't seem to find a similar control in this ( ARM ) compiler, rather all I can find in the manual is the -W which disables all warnings. Am I missing something ?
Thanks
that the OP refuses to give his reasons makes it impossible to give an answer.
It clearly isn't impossible since more than one person did in fact supply the answer ... with no "reasons" provided whatsoever; they simply answered the question. So once again, you've contributed absolutely nothing to a thread other than your typical annoying self worth, which most closely resembles a Hyde Park heckler: He's not necessarily stupid, but he has nothing useful to say so nobody listens to him, and generally does little more than induce the urge to deficate in people within earshot.
Warnings are Good- Warnings are Bad. They are just another tool in this toolset to be controlled by the user.
I frequently work with a partner long distance. We lay out a frame work of code and then split the tasks. I may have calls to his code set that is not yet included in my code until we sync via our SVC. So I create a 'DEBUG' target and a 'Production' target. In my debug target I will, among many options, disable selected warnings. The selected warning disable works fine for me but I am not running v4.7.
I disable the selected warnings when I know what they mean and the source of the warning. Sounds like a good tool for me. I don't worry the tools are giving overly strict or other warnings. I take them all with the same grain of salt.
When I select the 'Production' target all my warning options are returned to my default settings.
Just use the tools. They work.
Bradford
Thanks for your interesting description.
Just unfortunately the selective warning disable (using "#pragma diag_suppress...") stopped working since Version 4.6.
thank you. I am working on uVision 5.24 and it works again
In case anyone still wonders, I use "#pragma diag_suppress 1299" to suppress the warning about declaring and initializing in different orders. but only in one specific file