#pragma options flag, #pragma report (C++ only)
Limits the diagnostic messages to those of a specified severity level or higher.
The messages are written to standard output and, optionally, to the listing file if one is generated.
-qflag syntax – C (1) (2) .-------i-. .-------i-. >>- -qflag--=--+-w-------+--:--+-w-------+--------------------->< +-e-------+ +-e-------+ '-s-------' '-s-------'
-qflag syntax – C++ (1) .-------i-. >>- -qflag--=--+-w-------+--+----------------+----------------->< '-s-------' | (2) | | .-------i-. | '-:--+-w-------+-' '-s-------'
-qflag=i : i, which shows all compiler messages
You must specify a minimum message severity level for both listing and terminal reporting.
You must specify a minimum message severity level for the listing. If you do not specify a suboption for the terminal, the compiler assumes the same severity as for the listing.
Note that using -qflag does not enable the classes of informational message controlled by the -qinfo option; see -qinfo for more information.
None.
To compile myprogram.c so that the listing shows all messages that were generated and your workstation displays only error and higher messages (with their associated information messages to aid in fixing the errors), enter:
xlc myprogram.c -qflag=i:e