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.