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
Wouldn't it be better to just remove the causes of those warnings...?
ie, fix the problem, rather than just masking the symptoms?
Most definitely start a code quality improvement program and correct this - and probably other - bad habits that the code seems to suffer from.
If you are already doing other work with the code or are switching compiler or target platforms you still have to perform new validations of the code.