How do you disable compiler warnings in uVision 4? It's for a K20 procesor so it's an ARM Cortex M4. I tried the standard C++ #pragma warning but it didn't sppear to work...
I looked at them, I didn't see a way to just turn off one specific one, just all of them... I don't remember the exact warning off-hand and I don't have access to my compiler right at the moment.
You didn't follow far enough, then.
Hint: follow the link to the command-line option...
www.keil.com/.../armccref_CHDHFIAG.htm
Hmm all I see there is disabling all warnings... I looked all over those two pages you linked and couldn't find it.
How I hate these half answers certain posters give. It just annoys and proves nothing (except for the obnoxicity of the writer).
Anyway, you've nearly got it.
You can disable a specific warning. Say you want to disable warning 161. It can be done either as a command line parameter in the MiscControls section of
--diagsuppress=161
or as a pragma with
#pragma diag_warning 161
So even if you do find where to put the entry into a GUI like uVision, you still frequently have to find the relevant details concerning what you have to put in.
Thank you!!!
You're welcome.
Now lets just wait for the protestations from those half posters ;)
Or will they have been suppressed by my saying the above?
It is nice that someone stands up to typical forum answerers (they are everywhere) but they are still better than having no help so I don't want to be ungrateful. I hear you though, forums are not typically a friendly place to ask questions...
An old Chinese saying: It's more appreciated to teach one how to fish than to give him a fish.
Another one: Give answer without hesitation may deprive him of rights to think.
For someone's good, I think we could provide him informations, theories, thoughts, links, references, etc., but never provide the direct results. HE CAN THINK AND DRAW CONCLUSION BY HIMSELF. Also I would seldom provide codelets in a forum. Faith and logic.
There's maybe a few ways to do it but then I would like to know all the ways and some advice on which one is the best. Giving none of the ways doesn't really help...
Follow Andrew Neil's links you can find these two reference pages: www.keil.com/.../armccref_CHDHFIAG.htm www.keil.com/.../armccref_CIHECIAD.htm
By compiler options or by #pragma extensions. Also a lot more you can configure to direct the compiler how to compile your application.
So next time my wife can't start her car, I'll tell her to check the battery and do nothing else.
Yeah, right.
Some visitors tend to provide indirect answers; other visitors tend to provide direct answers; so that we have more and more contributors, isn't it a win-win?