Preprocessor directive for Turning ON/OFF Warning settings.

We can use #pragma warn directive to check ‘Display Warning’ settings in the Option | Compiler | Messages dialog boxes. For example, if your source code contain the directives

#pragma warn +xxx

#pragma warn -yyy

#pragma warn .zzz

the xxx warning will be turned on, the yyy warning will be turned off, and the zzz warning will be restored to value it had when compilation of the file began. For example:

#pragma warn -rvl

will disable the warning ‘Function should return a value’. For the complete list of three letter abbreviation you can refer to online help.

Subscribe / Share

It's very calm over here, why not leave a comment?

Leave a Reply




Categories

Powered by Yahoo! Answers