-qsuppress
Pragma equivalent
None.
Purpose
Prevents specific informational or warning messages from being displayed or added to the listing file, if one is generated.
Syntax
.-nosuppress--------------------------. | .-:------------------. | | V | | >>- -q--+-suppress--=----message_identifier-+-+----------------><
Defaults
-qnosuppress: All informational and warning messages are reported, unless set otherwise with the -qflag option.
Parameters
- message_identifier
- Represents a message identifier. The message identifier must be
in the following format:
where:15dd-number
- 15
- Is the compiler product identifier.
- dd
- Is the two-digit code representing the compiler component that produces the message. See Compiler message format for descriptions of these codes.
- number
- Is the message number.
Usage
You can only suppress information (I) and warning (W) messages. You cannot suppress other types of messages, such as (S) and (U) level messages. Note that informational and warning messages that supply additional information to a severe error cannot be disabled by this option.
To suppress all informational and warning messages, you can use the -w option.
To suppress IPA messages, enter -qsuppress before -qipa on the command line.
The -qhaltonmsg compiler option has precedence over -qsuppress. If both -qhaltonmsg and -qsuppress are specified, messages that are suppressed by -qsuppress are also printed.
The -qnosuppress compiler option cancels previous settings of -qsuppress.
Predefined macros
None.
Examples
"myprogram.c", line 1.1:1506-224 (I) Incorrect #pragma ignored
you can suppress the message by compiling with: xlc myprogram.c -qsuppress=1506-224