September 09, 2012

Stop Compiler Warning Message

Problem:
- How can i stop warning ?
- The variable 'XYZ' is assigned but its value is never used
- but no compiler message for never used
- prevent compiler warning


Solution:
Just use of these lines before and after source code
#pragma warning disable
    [SOURCE CODE]
#pragma warning restore

1 comment:

Anonymous said...

Congrats ~ Found your blog on Google while searching for a related topic, your site came up, it looks good, keep them coming !