Hi everyone,
Does anyone know if it is possible to supress a specific warning (arbitrary portion of code), as opposed to all warnings of a specific type?
For instance, I am porting code that uses assignments in conditions constantly, but consciously and on purpose. I would like to supress these warning for that code I have already verified, but not altogether, as this is just a part of a bigger project for which we would like to be warned about such situations.
Any pointers? I looked in the User Guide and Quick Reference, but could not find a straightforward answer.
Regards, George Andrew Brindeiro Robotron Automation and Technology
Using the pragma would probably not be my preferred choice to tackle this, but it is always difficult to judge when to berate people and when to just answer the question. There might be perfectly valid reasons for doing it this way. In fact I could think of some.
-- Marcus
Indeed.
But it is the poster's responsibility to provide all the information necessary to give appropriate answers!
In a recent blog, Dave Van Ess wrote:
"When I am out showing off PSoC I will have customers draw out a schematic and ask if PSoC can do that. A schematic is a solution, not a definition. I end up asking just what are they trying to do. When they tell us We then figure out how to do it the PSoC way."
See: www.cypress.com/ - last paragraph
In this thread, the OP has effectively sketched a schematic...