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
Guys, thanks for all the remarks, I think I will go with one of Per's suggestions:
if ((a = b) != 0) { ... }
I agree with all that was said, but since this code is not maintained by us, I understood that section of the code, and know they meant it as it was written... I would not have a problem just suppressing those warnings.
Per, thanks for going as far as showing me push/pop in order to actually do what I meant to do, but since the suggested change is simple enough, I will just do it.
Thank you all for the prompt response, George Andrew Brindeiro Robotron Automation and Technology