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
I use the
#pragma diag_suppress 265
in one module.
It worked nicely until uVision 4.5. But since 4.6 it unfortunately did not work any more (it does neither work in 4.7).
So I had to add "--diag_suppress 265" to the "Misc controls" in the "C/C++" page of the compile settings for this module. This works then, but the "pragma diag_suppress..." would be nicer for my application (as I need it only for a table with references to my struct/class addresses for communication access - this is a VERY local and small part of my code).
If you know the causes of the warnings well and you're certain enough that the warnings won't cause any bad results, why not just ignore them?
A very bad habit. If you're not careful, your list of acceptable warnings will start to grow and you'll miss the new one that really matters. Far better to suppress the one(s) you know are not problematic to you or your project so that any other warnings are seen more easily.
a) Just ignore the warnings which you judge NO HARM b) Suppress the warnings which you judge NO HARM You think these two choices different, because suppressing warnings more reasonable?
I'm afraid I cannot agree. I can't see any differences in these two. If the programmer made a wrong judgement, the problem will exist, no matter he ignore it or suppress it.
I can't see any differences in these two.
Then I suggest you open your eyes, read what I wrote again and consider it further.
Of course, it is preferable to remove a warning. But remember that some warnings are really benign.
Probably Jack Zhang is writing only small demo programs, but has no experience with larger projects.
View all questions in Keil forum