#pragma info

Description

The #pragma info directive controls the diagnostic messages generated by the info(...) compiler option. The #pragma directive overrides any info(...) option stated in the configuration file.

Syntax:

The effects of the options used with #pragma info are listed as follows:

all turns on all diagnostic checking.
none turns off all diagnostic suboptions for specific portions of your program
restore restores the options that were in effect before the previous #pragma info directive.
group generates all messages associated with that diagnostic group
nogroup suppresses all messages associated with that group.

The following message groups are supported:

cls Possible problems with generation of classes
cmp Possible redundancies in unsigned comparisons
cnd Possible redundancies or problems in conditional expressions.
cns Operations involving constants
cnv Conversions
cpy Possible problems with generation of copy constructors and copy assignment operators
dcl Consistency of declarations
eff Statements with no effect
enu Consistency of enum variables
ext Unused external definitions
gen General diagnostics
got Usage of goto statements
gnr Generation of compiler temporaries
inh Ambiguous base class for SOM classes
ini Possible problems with initialization
inl Functions that are not inlined
lan Effects of the language level
obs Features that are obsolete
ord Unspecified order of evaluation
par Unused parameters
por Nonportable language constructs
ppc Possible problems with using the preprocessor
ppt Trace of preprocessor actions
pro Missing function prototypes
rea Code that cannot be reached
ret Consistency of return statements
trd Possible truncation or loss of data or precision
tru Variable names truncated by the compiler
uni Uninitialized variables
use Unused auto and static variables.
vft Possible problems with generation of virtual function tables.

The default info groups are: cnd, por, pro, and ret.

For example,

#pragma info(ret)


Preprocessor Directives - An Overview
Preprocessor Directive - #pragma


info Miscellaneous Option - info(...)